Documentation ¶
Index ¶
- Variables
- func RegisterFaucetServiceServer(s *grpc.Server, srv FaucetServiceServer)
- type FaucetServiceClient
- type FaucetServiceServer
- type FundingRequest
- func (*FundingRequest) Descriptor() ([]byte, []int)
- func (m *FundingRequest) GetRecaptchaResponse() string
- func (m *FundingRequest) GetRecaptchaSiteKey() string
- func (m *FundingRequest) GetWalletAddress() string
- func (m *FundingRequest) Marshal() (dAtA []byte, err error)
- func (m *FundingRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *FundingRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*FundingRequest) ProtoMessage()
- func (m *FundingRequest) Reset()
- func (m *FundingRequest) Size() (n int)
- func (m *FundingRequest) String() string
- func (m *FundingRequest) Unmarshal(dAtA []byte) error
- func (m *FundingRequest) XXX_DiscardUnknown()
- func (m *FundingRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FundingRequest) XXX_Merge(src proto.Message)
- func (m *FundingRequest) XXX_Size() int
- func (m *FundingRequest) XXX_Unmarshal(b []byte) error
- type FundingResponse
- func (*FundingResponse) Descriptor() ([]byte, []int)
- func (m *FundingResponse) GetAmount() string
- func (m *FundingResponse) GetError() string
- func (m *FundingResponse) GetTransactionHash() string
- func (m *FundingResponse) Marshal() (dAtA []byte, err error)
- func (m *FundingResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *FundingResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*FundingResponse) ProtoMessage()
- func (m *FundingResponse) Reset()
- func (m *FundingResponse) Size() (n int)
- func (m *FundingResponse) String() string
- func (m *FundingResponse) Unmarshal(dAtA []byte) error
- func (m *FundingResponse) XXX_DiscardUnknown()
- func (m *FundingResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FundingResponse) XXX_Merge(src proto.Message)
- func (m *FundingResponse) XXX_Size() int
- func (m *FundingResponse) XXX_Unmarshal(b []byte) error
- type UnimplementedFaucetServiceServer
Constants ¶
This section is empty.
Variables ¶
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.ClientConn) 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*FundingRequest) Descriptor ¶
func (*FundingRequest) Descriptor() ([]byte, []int)
func (*FundingRequest) GetRecaptchaResponse ¶
func (m *FundingRequest) GetRecaptchaResponse() string
func (*FundingRequest) GetRecaptchaSiteKey ¶
func (m *FundingRequest) GetRecaptchaSiteKey() string
func (*FundingRequest) GetWalletAddress ¶
func (m *FundingRequest) GetWalletAddress() string
func (*FundingRequest) Marshal ¶
func (m *FundingRequest) Marshal() (dAtA []byte, err error)
func (*FundingRequest) MarshalToSizedBuffer ¶ added in v0.3.2
func (m *FundingRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*FundingRequest) ProtoMessage ¶
func (*FundingRequest) ProtoMessage()
func (*FundingRequest) Reset ¶
func (m *FundingRequest) Reset()
func (*FundingRequest) Size ¶
func (m *FundingRequest) Size() (n int)
func (*FundingRequest) String ¶
func (m *FundingRequest) String() string
func (*FundingRequest) Unmarshal ¶
func (m *FundingRequest) Unmarshal(dAtA []byte) error
func (*FundingRequest) XXX_DiscardUnknown ¶
func (m *FundingRequest) XXX_DiscardUnknown()
func (*FundingRequest) XXX_Marshal ¶
func (m *FundingRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*FundingRequest) XXX_Merge ¶
func (m *FundingRequest) XXX_Merge(src proto.Message)
func (*FundingRequest) XXX_Size ¶
func (m *FundingRequest) XXX_Size() int
func (*FundingRequest) XXX_Unmarshal ¶
func (m *FundingRequest) XXX_Unmarshal(b []byte) error
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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*FundingResponse) Descriptor ¶
func (*FundingResponse) Descriptor() ([]byte, []int)
func (*FundingResponse) GetAmount ¶
func (m *FundingResponse) GetAmount() string
func (*FundingResponse) GetError ¶
func (m *FundingResponse) GetError() string
func (*FundingResponse) GetTransactionHash ¶
func (m *FundingResponse) GetTransactionHash() string
func (*FundingResponse) Marshal ¶
func (m *FundingResponse) Marshal() (dAtA []byte, err error)
func (*FundingResponse) MarshalToSizedBuffer ¶ added in v0.3.2
func (m *FundingResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*FundingResponse) ProtoMessage ¶
func (*FundingResponse) ProtoMessage()
func (*FundingResponse) Reset ¶
func (m *FundingResponse) Reset()
func (*FundingResponse) Size ¶
func (m *FundingResponse) Size() (n int)
func (*FundingResponse) String ¶
func (m *FundingResponse) String() string
func (*FundingResponse) Unmarshal ¶
func (m *FundingResponse) Unmarshal(dAtA []byte) error
func (*FundingResponse) XXX_DiscardUnknown ¶
func (m *FundingResponse) XXX_DiscardUnknown()
func (*FundingResponse) XXX_Marshal ¶
func (m *FundingResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*FundingResponse) XXX_Merge ¶
func (m *FundingResponse) XXX_Merge(src proto.Message)
func (*FundingResponse) XXX_Size ¶
func (m *FundingResponse) XXX_Size() int
func (*FundingResponse) XXX_Unmarshal ¶
func (m *FundingResponse) XXX_Unmarshal(b []byte) error
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(ctx context.Context, req *FundingRequest) (*FundingResponse, error)
Click to show internal directories.
Click to hide internal directories.