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: 4 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 paracross rpc register

Types

type Grpc

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

Grpc paracross Grpc interface

func (Grpc) GetAssetTxResult

func (c Grpc) GetAssetTxResult(ctx context.Context, req *types.ReqHash) (*pt.ParacrossAsset, error)

func (Grpc) GetTitle

func (c Grpc) GetTitle(ctx context.Context, req *types.ReqString) (*pt.ParacrossStatus, error)

func (Grpc) GetTitleHeight

func (c Grpc) GetTitleHeight(ctx context.Context, req *pt.ReqParacrossTitleHeight) (*pt.ReceiptParacrossDone, error)

func (Grpc) IsSync

func (c Grpc) IsSync(ctx context.Context, in *types.ReqNil) (*types.IsCaughtUp, error)

IsSync query is sync

func (Grpc) ListTitles

func (c Grpc) ListTitles(ctx context.Context, req *types.ReqNil) (*pt.RespParacrossTitles, error)

type Jrpc

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

Jrpc paracross jrpc interface

func (*Jrpc) GetAssetTxResult

func (c *Jrpc) GetAssetTxResult(req *types.ReqHash, result *interface{}) error

GetAssetTxResult get asset tx result

func (*Jrpc) GetHeight

func (c *Jrpc) GetHeight(req *types.ReqString, result *interface{}) error

GetHeight jrpc get consensus height

func (*Jrpc) GetTitleHeight

func (c *Jrpc) GetTitleHeight(req *pt.ReqParacrossTitleHeight, result *interface{}) error

GetTitleHeight get consensus title height

func (*Jrpc) IsSync

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

IsSync query is sync

func (*Jrpc) ListTitles

func (c *Jrpc) ListTitles(req *types.ReqNil, result *interface{}) error

ListTitles get paracross consensus titles list

Jump to

Keyboard shortcuts

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