Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { GrpcPort int `mapstructure:"grpc-port"` GrpcHost string `mapstructure:"grpc-host"` HttpPort int `mapstructure:"http-port"` HttpHost string `mapstructure:"http-host"` AllowedOrigins []string `mapstructure:"allowed-origins"` CaptchaHost string `mapstructure:"captcha-host"` CaptchaSecret string `mapstructure:"captcha-secret"` CaptchaMinScore float64 `mapstructure:"captcha-min-score"` Web3Provider string `mapstructure:"web3-provider"` PrivateKey string `mapstructure:"private-key"` FundingAmount string `mapstructure:"funding-amount"` GasLimit uint64 `mapstructure:"gas-limit"` IpLimitPerAddress int `mapstructure:"ip-limit-per-address"` ChainId int64 `mapstructure:"chain-id"` }
Config for the faucet server.
type Server ¶
type Server struct { faucetpb.UnimplementedFaucetServer // contains filtered or unexported fields }
Server capable of funding requests for faucet ETH via gRPC and REST HTTP.
func (*Server) RequestFunds ¶
func (s *Server) RequestFunds( ctx context.Context, req *faucetpb.FundingRequest, ) (*faucetpb.FundingResponse, error)
RequestFunds from an Ethereum faucet. Requires a valid captcha response.
Click to show internal directories.
Click to hide internal directories.