Documentation ¶
Overview ¶
Package kafka defines an implementation of Database interface which exports streaming data using Kafka for data analysis.
Index ¶
- func Wrap(db iface.Database) (iface.Database, error)
- type Exporter
- func (e Exporter) ArchivedPointRoot(ctx context.Context, index uint64) [32]byte
- func (e Exporter) AttesterSlashing(ctx context.Context, slashingRoot [32]byte) (*eth.AttesterSlashing, error)
- func (e Exporter) Backup(ctx context.Context) error
- func (e Exporter) Block(ctx context.Context, blockRoot [32]byte) (*eth.SignedBeaconBlock, error)
- func (e Exporter) BlockRoots(ctx context.Context, f *filters.QueryFilter) ([][32]byte, error)
- func (e Exporter) Blocks(ctx context.Context, f *filters.QueryFilter) ([]*eth.SignedBeaconBlock, error)
- func (e Exporter) ClearDB() error
- func (e Exporter) Close() error
- func (e Exporter) DatabasePath() string
- func (e Exporter) DeleteState(ctx context.Context, blockRoot [32]byte) error
- func (e Exporter) DeleteStates(ctx context.Context, blockRoots [][32]byte) error
- func (e Exporter) DepositContractAddress(ctx context.Context) ([]byte, error)
- func (e Exporter) FinalizedCheckpoint(ctx context.Context) (*eth.Checkpoint, error)
- func (e Exporter) GenesisBlock(ctx context.Context) (*ethpb.SignedBeaconBlock, error)
- func (e Exporter) GenesisState(ctx context.Context) (*state.BeaconState, error)
- func (e Exporter) HasArchivedPoint(ctx context.Context, index uint64) bool
- func (e Exporter) HasAttesterSlashing(ctx context.Context, slashingRoot [32]byte) bool
- func (e Exporter) HasBlock(ctx context.Context, blockRoot [32]byte) bool
- func (e Exporter) HasProposerSlashing(ctx context.Context, slashingRoot [32]byte) bool
- func (e Exporter) HasState(ctx context.Context, blockRoot [32]byte) bool
- func (e Exporter) HasStateSummary(ctx context.Context, blockRoot [32]byte) bool
- func (e Exporter) HasVoluntaryExit(ctx context.Context, exitRoot [32]byte) bool
- func (e Exporter) HeadBlock(ctx context.Context) (*eth.SignedBeaconBlock, error)
- func (e Exporter) HeadState(ctx context.Context) (*state.BeaconState, error)
- func (e Exporter) HighestSlotBlocksBelow(ctx context.Context, slot uint64) ([]*ethpb.SignedBeaconBlock, error)
- func (e Exporter) HighestSlotStatesBelow(ctx context.Context, slot uint64) ([]*state.BeaconState, error)
- func (e Exporter) HistoricalStatesDeleted(ctx context.Context) error
- func (e Exporter) IsFinalizedBlock(ctx context.Context, blockRoot [32]byte) bool
- func (e Exporter) JustifiedCheckpoint(ctx context.Context) (*eth.Checkpoint, error)
- func (e Exporter) LastArchivedRoot(ctx context.Context) [32]byte
- func (e Exporter) LastArchivedSlot(ctx context.Context) (uint64, error)
- func (e Exporter) PowchainData(ctx context.Context) (*db.ETH1ChainData, error)
- func (e Exporter) ProposerSlashing(ctx context.Context, slashingRoot [32]byte) (*eth.ProposerSlashing, error)
- func (e Exporter) RunMigrations(ctx context.Context) error
- func (e Exporter) SaveAttesterSlashing(ctx context.Context, slashing *eth.AttesterSlashing) error
- func (e Exporter) SaveBlock(ctx context.Context, block *eth.SignedBeaconBlock) error
- func (e Exporter) SaveBlocks(ctx context.Context, blocks []*eth.SignedBeaconBlock) error
- func (e Exporter) SaveDepositContractAddress(ctx context.Context, addr common.Address) error
- func (e Exporter) SaveFinalizedCheckpoint(ctx context.Context, checkpoint *eth.Checkpoint) error
- func (e Exporter) SaveGenesisBlockRoot(ctx context.Context, blockRoot [32]byte) error
- func (e Exporter) SaveHeadBlockRoot(ctx context.Context, blockRoot [32]byte) error
- func (e Exporter) SaveJustifiedCheckpoint(ctx context.Context, checkpoint *eth.Checkpoint) error
- func (e Exporter) SavePowchainData(ctx context.Context, data *db.ETH1ChainData) error
- func (e Exporter) SaveProposerSlashing(ctx context.Context, slashing *eth.ProposerSlashing) error
- func (e Exporter) SaveState(ctx context.Context, state *state.BeaconState, blockRoot [32]byte) error
- func (e Exporter) SaveStateSummaries(ctx context.Context, summaries []*pb.StateSummary) error
- func (e Exporter) SaveStateSummary(ctx context.Context, summary *pb.StateSummary) error
- func (e Exporter) SaveStates(ctx context.Context, states []*state.BeaconState, blockRoots [][32]byte) error
- func (e Exporter) SaveVoluntaryExit(ctx context.Context, exit *eth.VoluntaryExit) error
- func (e Exporter) State(ctx context.Context, blockRoot [32]byte) (*state.BeaconState, error)
- func (e Exporter) StateSummary(ctx context.Context, blockRoot [32]byte) (*pb.StateSummary, error)
- func (e Exporter) VoluntaryExit(ctx context.Context, exitRoot [32]byte) (*eth.VoluntaryExit, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Exporter ¶
type Exporter struct {
// contains filtered or unexported fields
}
Exporter wraps a database interface and exports certain objects to kafka topics.
func (Exporter) ArchivedPointRoot ¶ added in v0.3.2
ArchivedPointRoot -- passthrough
func (Exporter) AttesterSlashing ¶
func (e Exporter) AttesterSlashing(ctx context.Context, slashingRoot [32]byte) (*eth.AttesterSlashing, error)
AttesterSlashing -- passthrough.
func (Exporter) BlockRoots ¶
BlockRoots -- passthrough.
func (Exporter) Blocks ¶
func (e Exporter) Blocks(ctx context.Context, f *filters.QueryFilter) ([]*eth.SignedBeaconBlock, error)
Blocks -- passthrough.
func (Exporter) DeleteState ¶
DeleteState -- passthrough.
func (Exporter) DeleteStates ¶
DeleteStates -- passthrough.
func (Exporter) DepositContractAddress ¶
DepositContractAddress -- passthrough.
func (Exporter) FinalizedCheckpoint ¶
FinalizedCheckpoint -- passthrough.
func (Exporter) GenesisBlock ¶
GenesisBlock -- passthrough.
func (Exporter) GenesisState ¶
GenesisState -- passthrough.
func (Exporter) HasArchivedPoint ¶ added in v0.3.2
HasArchivedPoint -- passthrough
func (Exporter) HasAttesterSlashing ¶
HasAttesterSlashing -- passthrough.
func (Exporter) HasProposerSlashing ¶
HasProposerSlashing -- passthrough.
func (Exporter) HasStateSummary ¶ added in v0.3.2
HasStateSummary -- passthrough.
func (Exporter) HasVoluntaryExit ¶
HasVoluntaryExit -- passthrough.
func (Exporter) HighestSlotBlocksBelow ¶ added in v0.3.9
func (e Exporter) HighestSlotBlocksBelow(ctx context.Context, slot uint64) ([]*ethpb.SignedBeaconBlock, error)
HighestSlotBlocksBelow -- passthrough
func (Exporter) HighestSlotStatesBelow ¶ added in v0.3.9
func (e Exporter) HighestSlotStatesBelow(ctx context.Context, slot uint64) ([]*state.BeaconState, error)
HighestSlotStatesBelow -- passthrough
func (Exporter) HistoricalStatesDeleted ¶
HistoricalStatesDeleted -- passthrough
func (Exporter) IsFinalizedBlock ¶
IsFinalizedBlock -- passthrough.
func (Exporter) JustifiedCheckpoint ¶
JustifiedCheckpoint -- passthrough.
func (Exporter) LastArchivedRoot ¶ added in v1.0.0
LastArchivedRoot -- passthrough
func (Exporter) LastArchivedSlot ¶ added in v1.0.0
LastArchivedSlot -- passthrough
func (Exporter) PowchainData ¶
PowchainData -- passthrough
func (Exporter) ProposerSlashing ¶
func (e Exporter) ProposerSlashing(ctx context.Context, slashingRoot [32]byte) (*eth.ProposerSlashing, error)
ProposerSlashing -- passthrough.
func (Exporter) RunMigrations ¶ added in v1.0.0
RunMigrations -- passthrough
func (Exporter) SaveAttesterSlashing ¶
SaveAttesterSlashing -- passthrough.
func (Exporter) SaveBlocks ¶
SaveBlocks publishes to the kafka topic for beacon blocks.
func (Exporter) SaveDepositContractAddress ¶
SaveDepositContractAddress -- passthrough.
func (Exporter) SaveFinalizedCheckpoint ¶
SaveFinalizedCheckpoint -- passthrough.
func (Exporter) SaveGenesisBlockRoot ¶
SaveGenesisBlockRoot -- passthrough.
func (Exporter) SaveHeadBlockRoot ¶
SaveHeadBlockRoot -- passthrough.
func (Exporter) SaveJustifiedCheckpoint ¶
SaveJustifiedCheckpoint -- passthrough.
func (Exporter) SavePowchainData ¶
SavePowchainData -- passthrough
func (Exporter) SaveProposerSlashing ¶
SaveProposerSlashing -- passthrough.
func (Exporter) SaveState ¶
func (e Exporter) SaveState(ctx context.Context, state *state.BeaconState, blockRoot [32]byte) error
SaveState -- passthrough.
func (Exporter) SaveStateSummaries ¶ added in v0.3.9
SaveStateSummaries -- passthrough.
func (Exporter) SaveStateSummary ¶ added in v0.3.2
SaveStateSummary -- passthrough.
func (Exporter) SaveStates ¶ added in v0.3.2
func (e Exporter) SaveStates(ctx context.Context, states []*state.BeaconState, blockRoots [][32]byte) error
SaveStates -- passthrough.
func (Exporter) SaveVoluntaryExit ¶
SaveVoluntaryExit -- passthrough.
func (Exporter) StateSummary ¶ added in v0.3.2
StateSummary -- passthrough.
func (Exporter) VoluntaryExit ¶
VoluntaryExit -- passthrough.