rpc

package
v1.67.5 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2023 License: BSD-3-Clause Imports: 4 Imported by: 6 modules, 4 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(name string, s rpctypes.RPCServer)

Init 注册 rpc 接口

Types

type Jrpc

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

Jrpc 对外提供服务的RPC接口总体定义

func (*Jrpc) QueryPing

func (c *Jrpc) QueryPing(param *echotypes.Query, result *interface{}) error

QueryPing 本合约的查询操作可以使用通用的Query接口,这里单独封装rpc的Query接口只是为了说明实现方式 接收客户端请求,并调用本地具体实现逻辑,然后返回结果

Jump to

Keyboard shortcuts

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