api_rpc

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RPCRequest

type RPCRequest struct {
	Method  string        `json:"method"`
	Params  []interface{} `json:"params"`
	JsonRPC string        `json:"jsonrpc"`
	ID      string        `json:"id"`
}

RPCRequest JSON-RPC 请求和响应结构

type RPCResponse

type RPCResponse struct {
	Result  interface{} `json:"result"`
	Error   interface{} `json:"error"`
	JsonRPC string      `json:"jsonrpc"`
	ID      string      `json:"id"`
}

Jump to

Keyboard shortcuts

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