Documentation ¶
Index ¶
- type GRPCStore
- type RewardStore
- func (s *RewardStore) Close(ctx context.Context) error
- func (s *RewardStore) StoreClaimedReward(ctx context.Context, reward structs.ClaimedReward) (err error)
- func (s *RewardStore) StoreClaimedRewards(ctx context.Context, rewards []structs.ClaimedReward) (err error)
- func (s *RewardStore) StoreEarnedReward(ctx context.Context, reward structs.EarnedReward) (err error)
- func (s *RewardStore) StoreEarnedRewards(ctx context.Context, rewards []structs.EarnedReward) (err error)
- func (s *RewardStore) StoreUnclaimedReward(ctx context.Context, reward structs.UnclaimedReward) (err error)
- func (s *RewardStore) StoreUnclaimedRewards(ctx context.Context, rewards []structs.UnclaimedReward) (err error)
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 (*GRPCStore) GetSearchSession ¶
func (*GRPCStore) GetValidatorsSession ¶
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) 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)
Click to show internal directories.
Click to hide internal directories.