store

package
v0.9.28 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2022 License: Apache-2.0 Imports: 2 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RewardStore

type RewardStore interface {
	StoreClaimedRewards(ctx context.Context, rwds []structs.ClaimedReward) error
	StoreClaimedReward(ctx context.Context, rwds structs.ClaimedReward) error
	StoreUnclaimedRewards(ctx context.Context, rwds []structs.UnclaimedReward) error
	StoreEarnedRewards(ctx context.Context, rwds []structs.EarnedReward) error
	StoreEarnedReward(ctx context.Context, rwds structs.EarnedReward) error
	Close(ctx context.Context) error
}

type SearchStore

type SearchStore interface {
	StoreTransactions(ctx context.Context, txs []structs.TransactionWithMeta) error
	StoreBlocks(ctx context.Context, blocks []structs.BlockWithMeta) error
	StoreBlocksAndTransactionsBinary(ctx context.Context, blocks []structs.BlockWithMeta, txs []structs.TransactionWithMeta) error
	ConfirmHeights(ctx context.Context, heights []structs.BlockWithMeta) error
	SearchBlockAtTime(ctx context.Context, timeAccount structs.TimeAccount) (*structs.Block, error)
	Close(ctx context.Context) error
}

type StoreCaller added in v0.5.0

type StoreCaller interface {
	GetSearchSession(ctx context.Context) (SearchStore, error)
	GetRewardsSession(ctx context.Context) (RewardStore, error)
	GetValidatorsSession(ctx context.Context) (ValidatorStore, error)
}

type ValidatorStore added in v0.8.0

type ValidatorStore interface {
	StoreValidatorStatuses(ctx context.Context, statuses []structs.ValidatorStatus) error
	StoreValidatorPerfMetrics(ctx context.Context, perfMetrics []structs.ValidatorPerfMetric) error
	Close(ctx context.Context) error
}

Directories

Path Synopsis
transport

Jump to

Keyboard shortcuts

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