Documentation ¶
Index ¶
- Variables
- func RegisterFaucetServiceServer(s *grpc.Server, srv FaucetServiceServer)
- type FaucetServiceClient
- type FaucetServiceServer
- type FundingRequest
- func (*FundingRequest) Descriptor() ([]byte, []int)deprecated
- func (x *FundingRequest) GetRecaptchaResponse() string
- func (x *FundingRequest) GetRecaptchaSiteKey() string
- func (x *FundingRequest) GetWalletAddress() string
- func (*FundingRequest) ProtoMessage()
- func (x *FundingRequest) ProtoReflect() protoreflect.Message
- func (x *FundingRequest) Reset()
- func (x *FundingRequest) String() string
- type FundingResponse
- func (*FundingResponse) Descriptor() ([]byte, []int)deprecated
- func (x *FundingResponse) GetAmount() string
- func (x *FundingResponse) GetError() string
- func (x *FundingResponse) GetTransactionHash() string
- func (*FundingResponse) ProtoMessage()
- func (x *FundingResponse) ProtoReflect() protoreflect.Message
- func (x *FundingResponse) Reset()
- func (x *FundingResponse) String() string
- type UnimplementedFaucetServiceServer
Constants ¶
This section is empty.
Variables ¶
View Source
var File_src_proto_faucet_proto protoreflect.FileDescriptor
Functions ¶
func RegisterFaucetServiceServer ¶
func RegisterFaucetServiceServer(s *grpc.Server, srv FaucetServiceServer)
Types ¶
type FaucetServiceClient ¶
type FaucetServiceClient interface {
RequestFunds(ctx context.Context, in *FundingRequest, opts ...grpc.CallOption) (*FundingResponse, error)
}
FaucetServiceClient is the client API for FaucetService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewFaucetServiceClient ¶
func NewFaucetServiceClient(cc grpc.ClientConnInterface) FaucetServiceClient
type FaucetServiceServer ¶
type FaucetServiceServer interface {
RequestFunds(context.Context, *FundingRequest) (*FundingResponse, error)
}
FaucetServiceServer is the server API for FaucetService service.
type FundingRequest ¶
type FundingRequest struct { WalletAddress string `protobuf:"bytes,1,opt,name=wallet_address,json=walletAddress,proto3" json:"wallet_address,omitempty"` RecaptchaSiteKey string `protobuf:"bytes,2,opt,name=recaptcha_site_key,json=recaptchaSiteKey,proto3" json:"recaptcha_site_key,omitempty"` RecaptchaResponse string `protobuf:"bytes,3,opt,name=recaptcha_response,json=recaptchaResponse,proto3" json:"recaptcha_response,omitempty"` // contains filtered or unexported fields }
func (*FundingRequest) Descriptor
deprecated
func (*FundingRequest) Descriptor() ([]byte, []int)
Deprecated: Use FundingRequest.ProtoReflect.Descriptor instead.
func (*FundingRequest) GetRecaptchaResponse ¶
func (x *FundingRequest) GetRecaptchaResponse() string
func (*FundingRequest) GetRecaptchaSiteKey ¶
func (x *FundingRequest) GetRecaptchaSiteKey() string
func (*FundingRequest) GetWalletAddress ¶
func (x *FundingRequest) GetWalletAddress() string
func (*FundingRequest) ProtoMessage ¶
func (*FundingRequest) ProtoMessage()
func (*FundingRequest) ProtoReflect ¶ added in v1.3.10
func (x *FundingRequest) ProtoReflect() protoreflect.Message
func (*FundingRequest) Reset ¶
func (x *FundingRequest) Reset()
func (*FundingRequest) String ¶
func (x *FundingRequest) String() string
type FundingResponse ¶
type FundingResponse struct { Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` Amount string `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"` TransactionHash string `protobuf:"bytes,3,opt,name=transactionHash,proto3" json:"transactionHash,omitempty"` // contains filtered or unexported fields }
func (*FundingResponse) Descriptor
deprecated
func (*FundingResponse) Descriptor() ([]byte, []int)
Deprecated: Use FundingResponse.ProtoReflect.Descriptor instead.
func (*FundingResponse) GetAmount ¶
func (x *FundingResponse) GetAmount() string
func (*FundingResponse) GetError ¶
func (x *FundingResponse) GetError() string
func (*FundingResponse) GetTransactionHash ¶
func (x *FundingResponse) GetTransactionHash() string
func (*FundingResponse) ProtoMessage ¶
func (*FundingResponse) ProtoMessage()
func (*FundingResponse) ProtoReflect ¶ added in v1.3.10
func (x *FundingResponse) ProtoReflect() protoreflect.Message
func (*FundingResponse) Reset ¶
func (x *FundingResponse) Reset()
func (*FundingResponse) String ¶
func (x *FundingResponse) String() string
type UnimplementedFaucetServiceServer ¶ added in v0.3.2
type UnimplementedFaucetServiceServer struct { }
UnimplementedFaucetServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedFaucetServiceServer) RequestFunds ¶ added in v0.3.2
func (*UnimplementedFaucetServiceServer) RequestFunds(context.Context, *FundingRequest) (*FundingResponse, error)
Click to show internal directories.
Click to hide internal directories.