Documentation ¶
Index ¶
- func Init(name string, s types.RPCServer)
- type Grpc
- func (g Grpc) CloseTickets(ctx context.Context, in *ty.TicketClose) (*types.ReplyHashes, error)
- func (g Grpc) CreateBindMiner(ctx context.Context, in *ty.ReqBindMiner) (*ty.ReplyBindMiner, error)
- func (g Grpc) GetTicketCount(ctx context.Context, in *types.ReqNil) (*types.Int64, error)
- func (g Grpc) SetAutoMining(ctx context.Context, in *ty.MinerFlag) (*types.Reply, error)
- type Jrpc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Grpc ¶
type Grpc struct {
// contains filtered or unexported fields
}
Grpc grpc type
func (Grpc) CloseTickets ¶
func (g Grpc) CloseTickets(ctx context.Context, in *ty.TicketClose) (*types.ReplyHashes, error)
CloseTickets close ticket
func (Grpc) CreateBindMiner ¶
func (g Grpc) CreateBindMiner(ctx context.Context, in *ty.ReqBindMiner) (*ty.ReplyBindMiner, error)
CreateBindMiner 创建绑定挖矿
func (Grpc) GetTicketCount ¶
GetTicketCount get count
type Jrpc ¶
type Jrpc struct {
// contains filtered or unexported fields
}
Jrpc json rpc type
func (*Jrpc) CloseTickets ¶
func (c *Jrpc) CloseTickets(in *ty.TicketClose, result *interface{}) error
CloseTickets close ticket
func (*Jrpc) CreateBindMiner ¶
func (c *Jrpc) CreateBindMiner(in *ty.ReqBindMiner, result *interface{}) error
CreateBindMiner create bind miner
func (*Jrpc) GetTicketCount ¶
GetTicketCount get ticket count
Click to show internal directories.
Click to hide internal directories.