Documentation ¶
Index ¶
- func Init(name string, s types.RPCServer)
- type Grpc
- func (c Grpc) GetAssetTxResult(ctx context.Context, req *types.ReqHash) (*pt.ParacrossAsset, error)
- func (c Grpc) GetBlock2MainInfo(ctx context.Context, req *types.ReqBlocks) (*pt.ParaBlock2MainInfo, error)
- func (c Grpc) GetNodeGroupAddrs(ctx context.Context, req *pt.ReqParacrossNodeInfo) (*types.ReplyConfig, error)
- func (c Grpc) GetNodeGroupStatus(ctx context.Context, req *pt.ReqParacrossNodeInfo) (*pt.ParaNodeGroupStatus, error)
- func (c Grpc) GetNodeStatus(ctx context.Context, req *pt.ReqParacrossNodeInfo) (*pt.ParaNodeAddrStatus, error)
- func (c Grpc) GetTitle(ctx context.Context, req *types.ReqString) (*pt.ParacrossConsensusStatus, error)
- func (c Grpc) GetTitleHeight(ctx context.Context, req *pt.ReqParacrossTitleHeight) (*pt.RespParacrossDone, error)
- func (c Grpc) IsSync(ctx context.Context, in *types.ReqNil) (*types.IsCaughtUp, error)
- func (c Grpc) ListNodeGroupStatus(ctx context.Context, req *pt.ReqParacrossNodeInfo) (*pt.RespParacrossNodeGroups, error)
- func (c Grpc) ListNodeStatus(ctx context.Context, req *pt.ReqParacrossNodeInfo) (*pt.RespParacrossNodeAddrs, error)
- func (c Grpc) ListTitles(ctx context.Context, req *types.ReqNil) (*pt.RespParacrossTitles, error)
- type Jrpc
- func (c *Jrpc) GetAssetTxResult(req *types.ReqHash, result *interface{}) error
- func (c *Jrpc) GetBlock2MainInfo(req *types.ReqBlocks, result *interface{}) error
- func (c *Jrpc) GetHeight(req *types.ReqString, result *interface{}) error
- func (c *Jrpc) GetNodeGroupAddrs(req *pt.ReqParacrossNodeInfo, result *interface{}) error
- func (c *Jrpc) GetNodeGroupStatus(req *pt.ReqParacrossNodeInfo, result *interface{}) error
- func (c *Jrpc) GetNodeStatus(req *pt.ReqParacrossNodeInfo, result *interface{}) error
- func (c *Jrpc) GetTitleHeight(req *pt.ReqParacrossTitleHeight, result *interface{}) error
- func (c *Jrpc) IsSync(in *types.ReqNil, result *interface{}) error
- func (c *Jrpc) ListNodeGroupStatus(req *pt.ReqParacrossNodeInfo, result *interface{}) error
- func (c *Jrpc) ListNodeStatus(req *pt.ReqParacrossNodeInfo, result *interface{}) error
- func (c *Jrpc) ListTitles(req *types.ReqNil, result *interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Grpc ¶
type Grpc struct {
// contains filtered or unexported fields
}
Grpc paracross Grpc interface
func (Grpc) GetAssetTxResult ¶
func (Grpc) GetBlock2MainInfo ¶
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) GetTitleHeight ¶
func (c Grpc) GetTitleHeight(ctx context.Context, req *pt.ReqParacrossTitleHeight) (*pt.RespParacrossDone, error)
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 ¶
type Jrpc ¶
type Jrpc struct {
// contains filtered or unexported fields
}
Jrpc paracross jrpc interface
func (*Jrpc) GetAssetTxResult ¶
GetAssetTxResult get asset tx result
func (*Jrpc) GetBlock2MainInfo ¶
GetBlock2MainInfo jrpc get para block info with main chain map
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) 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
Click to show internal directories.
Click to hide internal directories.