faucet

package
v1.4.4 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2021 License: GPL-3.0 Imports: 9 Imported by: 10

Documentation

Index

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.

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

Jump to

Keyboard shortcuts

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