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) GetTicketList(ctx context.Context, in *types.ReqNil) ([]*ty.Ticket, error)
- func (g Grpc) SetAutoMining(ctx context.Context, in *ty.MinerFlag) (*types.Reply, error)
- type Jrpc
- func (c *Jrpc) CloseTickets(in *ty.TicketClose, result *interface{}) error
- func (c *Jrpc) CreateBindMiner(in *ty.ReqBindMiner, result *interface{}) error
- func (c *Jrpc) GetTicketCount(in *types.ReqNil, result *int64) error
- func (c *Jrpc) GetTicketList(in *types.ReqNil, result *interface{}) error
- func (c *Jrpc) SetAutoMining(in *ty.MinerFlag, result *rpctypes.Reply) error
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
func (Grpc) GetTicketList ¶
GetTicketList get ticket list info
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
func (*Jrpc) GetTicketList ¶
GetTicketList get ticket list info
Click to show internal directories.
Click to hide internal directories.