rpc

package
v6.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2019 License: BSD-3-Clause Imports: 5 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 init grpc param

Types

type Grpc

type Grpc struct {
	// contains filtered or unexported fields
}

Grpc grpc struct

func (Grpc) GetUnfreeze

func (c Grpc) GetUnfreeze(ctx context.Context, in *types.ReqString) (*pty.Unfreeze, error)

GetUnfreeze 获得冻结合约

func (Grpc) GetUnfreezeWithdraw

func (c Grpc) GetUnfreezeWithdraw(ctx context.Context, in *types.ReqString) (*pty.ReplyQueryUnfreezeWithdraw, error)

GetUnfreezeWithdraw 获得冻结合约可提币量

type Jrpc

type Jrpc struct {
	// contains filtered or unexported fields
}

Jrpc json rpc struct

func (*Jrpc) CreateRawUnfreezeCreate

func (c *Jrpc) CreateRawUnfreezeCreate(param *pty.UnfreezeCreate, result *interface{}) error

CreateRawUnfreezeCreate 创建冻结合约

func (*Jrpc) CreateRawUnfreezeTerminate

func (c *Jrpc) CreateRawUnfreezeTerminate(param *pty.UnfreezeTerminate, result *interface{}) error

CreateRawUnfreezeTerminate 终止冻结合约

func (*Jrpc) CreateRawUnfreezeWithdraw

func (c *Jrpc) CreateRawUnfreezeWithdraw(param *pty.UnfreezeWithdraw, result *interface{}) error

CreateRawUnfreezeWithdraw 创建提币交易

func (*Jrpc) GetUnfreeze

func (c *Jrpc) GetUnfreeze(in *types.ReqString, result *interface{}) error

GetUnfreeze 获得冻结合约

func (*Jrpc) GetUnfreezeWithdraw

func (c *Jrpc) GetUnfreezeWithdraw(in *types.ReqString, result *interface{}) error

GetUnfreezeWithdraw 获得冻结合约可提币量

Jump to

Keyboard shortcuts

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