slashfilter

package
v0.9.4 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2021 License: Apache-2.0, MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitMysqlRepo added in v0.9.4

func InitMysqlRepo(cfg config.MySQLConfig) (ds.Batching, error)

Types

type MysqlRepo added in v0.9.4

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

func (*MysqlRepo) Batch added in v0.9.4

func (mr *MysqlRepo) Batch() (ds.Batch, error)

func (*MysqlRepo) Close added in v0.9.4

func (mr *MysqlRepo) Close() error

func (*MysqlRepo) Delete added in v0.9.4

func (mr *MysqlRepo) Delete(key ds.Key) error

func (*MysqlRepo) Get added in v0.9.4

func (mr *MysqlRepo) Get(key ds.Key) ([]byte, error)

func (*MysqlRepo) GetSize added in v0.9.4

func (mr *MysqlRepo) GetSize(key ds.Key) (int, error)

func (*MysqlRepo) Has added in v0.9.4

func (mr *MysqlRepo) Has(key ds.Key) (bool, error)

func (*MysqlRepo) Put added in v0.9.4

func (mr *MysqlRepo) Put(key ds.Key, value []byte) error

func (*MysqlRepo) Query added in v0.9.4

func (mr *MysqlRepo) Query(q query.Query) (query.Results, error)

func (*MysqlRepo) Sync added in v0.9.4

func (mr *MysqlRepo) Sync(prefix ds.Key) error

type SlashFilter

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

func New

func New(dstore ds.Batching) *SlashFilter

func (*SlashFilter) MinedBlock

func (f *SlashFilter) MinedBlock(bh *types.BlockHeader, parentEpoch abi.ChainEpoch) error

Jump to

Keyboard shortcuts

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