Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Middleware ¶ added in v0.4.3
type Options ¶ added in v0.4.3
type Options struct {
Middlewares []Middleware
}
type Store ¶
type Store interface { InsertTd(ctx context.Context, data *model.TotalDifficulty) error Insert(ctx context.Context, data *model.Header) error Delete(ctx context.Context, from, to int64) (err error) FindTd(ctx context.Context, hash []byte) (result *model.TotalDifficulty, err error) FindBlockByNumber(ctx context.Context, blockNumber int64) (result *model.Header, err error) FindBlockByHash(ctx context.Context, hash []byte) (result *model.Header, err error) FindLatestBlock(ctx context.Context) (result *model.Header, err error) CountBlocks(ctx context.Context) (uint64, error) }
Click to show internal directories.
Click to hide internal directories.