rpc

package
Version: v1.65.3 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2021 License: BSD-3-Clause Imports: 6 Imported by: 3

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) GetTicketList

func (g Grpc) GetTicketList(ctx context.Context, in *types.ReqNil) ([]*ty.Ticket, error)

GetTicketList get ticket list info

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) GetTicketList

func (c *Jrpc) GetTicketList(in *types.ReqNil, result *interface{}) error

GetTicketList get ticket list info

func (*Jrpc) SetAutoMining

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

SetAutoMining set auto mining

Source Files

Jump to

Keyboard shortcuts

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