rpc

package
v0.0.0-...-5c7291a Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2020 License: ISC 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 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) GetBlock2MainInfo

func (c Grpc) GetBlock2MainInfo(ctx context.Context, req *types.ReqBlocks) (*pt.ParaBlock2MainInfo, error)

func (Grpc) GetNodeGroupAddrs

func (c Grpc) GetNodeGroupAddrs(ctx context.Context, req *pt.ReqParacrossNodeInfo) (*types.ReplyConfig, error)

GetNodeGroupAddrs get super node group addrs

func (Grpc) GetNodeGroupStatus

func (c Grpc) GetNodeGroupStatus(ctx context.Context, req *pt.ReqParacrossNodeInfo) (*pt.ParaNodeGroupStatus, error)

GetNodeGroupStatus get super node group status

func (Grpc) GetNodeStatus

func (c Grpc) GetNodeStatus(ctx context.Context, req *pt.ReqParacrossNodeInfo) (*pt.ParaNodeAddrStatus, error)

GetNodeStatus get super node status

func (Grpc) GetTitle

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

func (Grpc) GetTitleHeight

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

func (Grpc) IsSync

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

IsSync query is sync

func (Grpc) ListNodeGroupStatus

func (c Grpc) ListNodeGroupStatus(ctx context.Context, req *pt.ReqParacrossNodeInfo) (*pt.RespParacrossNodeGroups, error)

ListNodeGroupStatus list super node group by status

func (Grpc) ListNodeStatus

func (c Grpc) ListNodeStatus(ctx context.Context, req *pt.ReqParacrossNodeInfo) (*pt.RespParacrossNodeAddrs, error)

ListNodeStatus list super node by status

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

func (c *Jrpc) GetBlock2MainInfo(req *types.ReqBlocks, result *interface{}) error

GetBlock2MainInfo jrpc get para block info with main chain map

func (*Jrpc) GetHeight

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

GetHeight jrpc get consensus height

func (*Jrpc) GetNodeGroupAddrs

func (c *Jrpc) GetNodeGroupAddrs(req *pt.ReqParacrossNodeInfo, result *interface{}) error

GetNodeGroupAddrs get super node group addrs

func (*Jrpc) GetNodeGroupStatus

func (c *Jrpc) GetNodeGroupStatus(req *pt.ReqParacrossNodeInfo, result *interface{}) error

GetNodeGroupStatus get super node group status

func (*Jrpc) GetNodeStatus

func (c *Jrpc) GetNodeStatus(req *pt.ReqParacrossNodeInfo, result *interface{}) error

GetNodeStatus get super node status

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

func (c *Jrpc) ListNodeGroupStatus(req *pt.ReqParacrossNodeInfo, result *interface{}) error

ListNodeGroupStatus list super node group by status

func (*Jrpc) ListNodeStatus

func (c *Jrpc) ListNodeStatus(req *pt.ReqParacrossNodeInfo, result *interface{}) error

ListNodeStatus list super node by status

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