storages

package
v1.3.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 24, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MemoryStorage

type MemoryStorage struct {
	// contains filtered or unexported fields
}

MemoryStorage ...

func (*MemoryStorage) LoadBlocks added in v1.3.2

func (storage *MemoryStorage) LoadBlocks(cursor interface{}, count int) (
	blocks blockchain.BlockGroup,
	nextCursor interface{},
	err error,
)

LoadBlocks ...

func (MemoryStorage) LoadLastBlock

func (storage MemoryStorage) LoadLastBlock() (blockchain.Block, error)

LoadLastBlock ...

func (*MemoryStorage) StoreBlock

func (storage *MemoryStorage) StoreBlock(block blockchain.Block) error

StoreBlock ...

type Stringer

type Stringer interface {
	fmt.Stringer
}

Stringer ...

It's used only for mock generating.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL