rpc

package
v0.0.0-...-0abe6a2 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2019 License: BSD-3-Clause Imports: 4 Imported by: 1

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