store

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2021 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
	StoreUnclaimedRewards(ctx context.Context, rwds []structs.UnclaimedReward) error
}

type SearchStore

type SearchStore interface {
	StoreTransactions(ctx context.Context, txs []structs.TransactionWithMeta) error
	StoreBlocks(ctx context.Context, blocks []structs.BlockWithMeta) error
	ConfirmHeights(ctx context.Context, heights []structs.BlockWithMeta) error
	SearchBlockAtTime(ctx context.Context, timeAccount structs.TimeAccount) (*structs.Block, 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
}

Directories

Path Synopsis
transport

Jump to

Keyboard shortcuts

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