Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNilArgsOutportFactory = errors.New("nil args outport driver factory")
ErrNilArgsOutportFactory signals that arguments that are needed for elastic driver factory are nil
View Source
var ErrNilDriver = errors.New("nil driver")
ErrNilDriver signals that a nil driver has been provided
Functions ¶
Types ¶
type Driver ¶
type Driver interface { SaveBlock(args *indexer.ArgsSaveBlockData) RevertIndexedBlock(header data.HeaderHandler, body data.BodyHandler) SaveRoundsInfo(roundsInfos []*indexer.RoundInfo) SaveValidatorsPubKeys(validatorsPubKeys map[uint32][][]byte, epoch uint32) SaveValidatorsRating(indexID string, infoRating []*indexer.ValidatorRatingInfo) SaveAccounts(blockTimestamp uint64, acc []data.UserAccountHandler) Close() error IsInterfaceNil() bool }
Driver is an interface for saving node specific data to other storage. This could be an elastic search index, a MySql database or any other external services.
Click to show internal directories.
Click to hide internal directories.