faucet

package
v0.0.0-...-ab12051 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2020 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthFaucet        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowFaucet          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupFaucet = fmt.Errorf("proto: unexpected end of group")
)

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) MarshalTo

func (m *FundingRequest) MarshalTo(dAtA []byte) (int, error)

func (*FundingRequest) MarshalToSizedBuffer

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) MarshalTo

func (m *FundingResponse) MarshalTo(dAtA []byte) (int, error)

func (*FundingResponse) MarshalToSizedBuffer

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

type UnimplementedFaucetServiceServer struct {
}

UnimplementedFaucetServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedFaucetServiceServer) RequestFunds

Jump to

Keyboard shortcuts

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