Documentation
¶
Index ¶
- func InitMysqlRepo(cfg config.MySQLConfig) (ds.Batching, error)
- type MysqlRepo
- func (mr *MysqlRepo) Batch() (ds.Batch, error)
- func (mr *MysqlRepo) Close() error
- func (mr *MysqlRepo) Delete(key ds.Key) error
- func (mr *MysqlRepo) Get(key ds.Key) ([]byte, error)
- func (mr *MysqlRepo) GetSize(key ds.Key) (int, error)
- func (mr *MysqlRepo) Has(key ds.Key) (bool, error)
- func (mr *MysqlRepo) Put(key ds.Key, value []byte) error
- func (mr *MysqlRepo) Query(q query.Query) (query.Results, error)
- func (mr *MysqlRepo) Sync(prefix ds.Key) error
- type SlashFilter
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
}
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
Click to show internal directories.
Click to hide internal directories.