Documentation ¶
Index ¶
- type Client
- type Server
- func (s *Server) FetchAccountState(ctx context.Context, request *proto.FetchAccountStateRequest) (*proto.FetchAccountStateResponse, error)
- func (s *Server) GetFreeToken(ctx context.Context, request *proto.GetFreeTokenRequest) (*proto.GetFreeTokenResponse, error)
- func (s *Server) Start(ip, port string) (*grpc.Server, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is the client model for client service.
func (*Client) GetBalance ¶
GetBalance gets account balance from the client service.
func (*Client) GetFreeToken ¶
GetFreeToken requests free token from the faucet contract.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is the Server struct for client service package.
func NewServer ¶
func NewServer( stateReader func() (*state.DB, error), callFaucetContract func(common.Address) common.Hash) *Server
NewServer creates new Server which implements ClientServiceServer interface.
func (*Server) FetchAccountState ¶
func (s *Server) FetchAccountState(ctx context.Context, request *proto.FetchAccountStateRequest) (*proto.FetchAccountStateResponse, error)
FetchAccountState implements the FetchAccountState interface to return account state.
func (*Server) GetFreeToken ¶
func (s *Server) GetFreeToken(ctx context.Context, request *proto.GetFreeTokenRequest) (*proto.GetFreeTokenResponse, error)
GetFreeToken implements the GetFreeToken interface to request free token.
Click to show internal directories.
Click to hide internal directories.