rpc

package
v1.64.0 Latest Latest
Warning

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

Go to latest
Published: May 3, 2020 License: BSD-3-Clause Imports: 4 Imported by: 4

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

func (c Grpc) GetParaLocalBlockInfo(ctx context.Context, in *types.ReqInt) (*pt.ParaLocalDbBlockInfo, error)

GetParaLocalBlockInfo query para chain the download layer's local height

func (Grpc) IsSync

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

IsSync query is sync

type Jrpc

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

Jrpc paracross jrpc interface

func (*Jrpc) GetParaLocalBlockInfo

func (c *Jrpc) GetParaLocalBlockInfo(in *types.ReqInt, result *interface{}) error

GetParaLocalBlockInfo query para local height

func (*Jrpc) IsSync

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

IsSync query is sync

Jump to

Keyboard shortcuts

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