jsonrpc

package
v1.0.15-0...-55ead4f Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JsonRpClient

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

func NewJsonRpClient

func NewJsonRpClient(addr, version string) JsonRpClient

func (JsonRpClient) Call

func (j JsonRpClient) Call(method string, param, result interface{}) error

type Response

type Response struct {
	Code int         `json:"code"` //状态码
	Data interface{} `json:"data"` //数据
	Msg  string      `json:"msg"`  //消息
}

Jump to

Keyboard shortcuts

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