Documentation ¶
Index ¶
- Constants
- type ChallengeReply
- type FaucetAddressReply
- type JSONRPCClient
- type JSONRPCServer
- func (j *JSONRPCServer) Challenge(req *http.Request, _ *struct{}, reply *ChallengeReply) (err error)
- func (j *JSONRPCServer) FaucetAddress(req *http.Request, _ *struct{}, reply *FaucetAddressReply) (err error)
- func (j *JSONRPCServer) SolveChallenge(req *http.Request, args *SolveChallengeArgs, reply *SolveChallengeReply) error
- type Manager
- type SolveChallengeArgs
- type SolveChallengeReply
Constants ¶
View Source
const (
JSONRPCEndpoint = "/faucet"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChallengeReply ¶
type FaucetAddressReply ¶
type FaucetAddressReply struct {
Address string `json:"address"`
}
type JSONRPCClient ¶
type JSONRPCClient struct {
// contains filtered or unexported fields
}
func NewJSONRPCClient ¶
func NewJSONRPCClient(uri string) *JSONRPCClient
New creates a new client object.
func (*JSONRPCClient) FaucetAddress ¶
func (cli *JSONRPCClient) FaucetAddress(ctx context.Context) (string, error)
type JSONRPCServer ¶
type JSONRPCServer struct {
// contains filtered or unexported fields
}
func NewJSONRPCServer ¶
func NewJSONRPCServer(m Manager) *JSONRPCServer
func (*JSONRPCServer) Challenge ¶
func (j *JSONRPCServer) Challenge(req *http.Request, _ *struct{}, reply *ChallengeReply) (err error)
func (*JSONRPCServer) FaucetAddress ¶
func (j *JSONRPCServer) FaucetAddress(req *http.Request, _ *struct{}, reply *FaucetAddressReply) (err error)
func (*JSONRPCServer) SolveChallenge ¶
func (j *JSONRPCServer) SolveChallenge(req *http.Request, args *SolveChallengeArgs, reply *SolveChallengeReply) error
type SolveChallengeArgs ¶
type SolveChallengeReply ¶
Click to show internal directories.
Click to hide internal directories.