Documentation ¶
Index ¶
- type ValidatorInfoCacherStub
- func (vics *ValidatorInfoCacherStub) AddValidatorInfo(validatorInfoHash []byte, validatorInfo *state.ShardValidatorInfo)
- func (vics *ValidatorInfoCacherStub) Clean()
- func (vics *ValidatorInfoCacherStub) GetValidatorInfo(validatorInfoHash []byte) (*state.ShardValidatorInfo, error)
- func (vics *ValidatorInfoCacherStub) IsInterfaceNil() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ValidatorInfoCacherStub ¶
type ValidatorInfoCacherStub struct { CleanCalled func() AddValidatorInfoCalled func(validatorInfoHash []byte, validatorInfo *state.ShardValidatorInfo) GetValidatorInfoCalled func(validatorInfoHash []byte) (*state.ShardValidatorInfo, error) }
ValidatorInfoCacherStub -
func (*ValidatorInfoCacherStub) AddValidatorInfo ¶
func (vics *ValidatorInfoCacherStub) AddValidatorInfo(validatorInfoHash []byte, validatorInfo *state.ShardValidatorInfo)
AddValidatorInfo -
func (*ValidatorInfoCacherStub) GetValidatorInfo ¶
func (vics *ValidatorInfoCacherStub) GetValidatorInfo(validatorInfoHash []byte) (*state.ShardValidatorInfo, error)
GetValidatorInfo -
func (*ValidatorInfoCacherStub) IsInterfaceNil ¶
func (vics *ValidatorInfoCacherStub) IsInterfaceNil() bool
IsInterfaceNil returns true if there is no value under the interface
Click to show internal directories.
Click to hide internal directories.