rpc

package
v0.0.0-...-0abe6a2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 19, 2019 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(name string, s types.RPCServer)

Init initial

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

func (g Grpc) GetTicketCount(ctx context.Context, in *types.ReqNil) (*types.Int64, error)

GetTicketCount get count

func (Grpc) SetAutoMining

func (g Grpc) SetAutoMining(ctx context.Context, in *ty.MinerFlag) (*types.Reply, error)

SetAutoMining set auto mining

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

func (c *Jrpc) GetTicketCount(in *types.ReqNil, result *int64) error

GetTicketCount get ticket count

func (*Jrpc) SetAutoMining

func (c *Jrpc) SetAutoMining(in *ty.MinerFlag, result *rpctypes.Reply) error

SetAutoMining set auto mining

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL