grpc

package
v0.9.15 Latest Latest
Warning

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

Go to latest
Published: May 12, 2022 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GRPCStore

type GRPCStore struct {
	// contains filtered or unexported fields
}

func NewGRPCStoreRewards

func NewGRPCStoreRewards(rewardsConn grpc.ClientConnInterface) (*GRPCStore, error)

func (*GRPCStore) GetRewardsSession

func (g *GRPCStore) GetRewardsSession(ctx context.Context) (store.RewardStore, error)

func (*GRPCStore) GetSearchSession

func (s *GRPCStore) GetSearchSession(ctx context.Context) (store.SearchStore, error)

func (*GRPCStore) GetValidatorsSession

func (s *GRPCStore) GetValidatorsSession(ctx context.Context) (store.ValidatorStore, error)

type RewardStore

type RewardStore struct {
	// contains filtered or unexported fields
}

RewardStore stream manager for rewards store. this function IS NOT THREAD SAFE. Application needs to deal with that itself

func (*RewardStore) Close

func (s *RewardStore) Close(ctx context.Context) error

func (*RewardStore) StoreClaimedReward

func (s *RewardStore) StoreClaimedReward(ctx context.Context, reward structs.ClaimedReward) (err error)

func (*RewardStore) StoreClaimedRewards

func (s *RewardStore) StoreClaimedRewards(ctx context.Context, rewards []structs.ClaimedReward) (err error)

func (*RewardStore) StoreEarnedReward

func (s *RewardStore) StoreEarnedReward(ctx context.Context, reward structs.EarnedReward) (err error)

func (*RewardStore) StoreEarnedRewards

func (s *RewardStore) StoreEarnedRewards(ctx context.Context, rewards []structs.EarnedReward) (err error)

func (*RewardStore) StoreUnclaimedReward

func (s *RewardStore) StoreUnclaimedReward(ctx context.Context, reward structs.UnclaimedReward) (err error)

func (*RewardStore) StoreUnclaimedRewards

func (s *RewardStore) StoreUnclaimedRewards(ctx context.Context, rewards []structs.UnclaimedReward) (err error)

Jump to

Keyboard shortcuts

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