Documentation
¶
Index ¶
- type Rewards
- func (r *Rewards) CreateReward(ctx context.Context, cr *v1.CreateReward) (*v1.GetRewardResponse, error)
- func (r *Rewards) DeleteReward(ctx context.Context, dr *v1.DeleteReward) (string, error)
- func (r *Rewards) GetReward(ctx context.Context, address string) (*v1.GetRewardResponse, error)
- func (r *Rewards) GetRewardAttestation(ctx context.Context, req *v1.GetRewardAttestationRequest) (*v1.GetRewardAttestationResponse, error)
- func (r *Rewards) GetRewards(ctx context.Context, claim_authority string) (*v1.GetRewardsResponse, error)
- func (r *Rewards) SetPrivKey(privKey *ecdsa.PrivateKey)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Rewards ¶
type Rewards struct {
// contains filtered or unexported fields
}
func NewRewards ¶
func NewRewards(core corev1connect.CoreServiceClient) *Rewards
func (*Rewards) CreateReward ¶
func (r *Rewards) CreateReward(ctx context.Context, cr *v1.CreateReward) (*v1.GetRewardResponse, error)
func (*Rewards) DeleteReward ¶
func (*Rewards) GetRewardAttestation ¶
func (r *Rewards) GetRewardAttestation(ctx context.Context, req *v1.GetRewardAttestationRequest) (*v1.GetRewardAttestationResponse, error)
func (*Rewards) GetRewards ¶
func (*Rewards) SetPrivKey ¶
func (r *Rewards) SetPrivKey(privKey *ecdsa.PrivateKey)
Click to show internal directories.
Click to hide internal directories.