package
1.0.0
Repository: https://github.com/sliveryou/micro-pkg.git
Documentation: pkg.go.dev

# Functions

NewRPCClient 新建通用 JSON-RPC 客户端.
NewRPCRequest 新建通用 JSON-RPC 请求体.
NewRPCRequestWithID 使用指定 id 新建通用 JSON-RPC 请求体.
Params 构建请求参数.
WithCustomHeaders 使用配置的 HTTP 请求头.
WithDefaultRequestID 使用配置的默认请求ID.
WithHTTPClient 使用配置的 HTTP 客户端.

# Constants

RPCVersion 默认 JSON-RPC 版本.

# Structs

RPCError 通用 JSON-RPC 错误.
RPCRequest 通用 JSON-RPC 请求体.
RPCResponse 通用 JSON-RPC 响应体.

# Interfaces

RPCClient 通用 JSON-RPC 客户端接口 规范:https://wiki.geekdream.com/Specification/json-rpc_2.0.html.

# Type aliases

RPCOption JSON-RPC 客户端可选配置.
RPCRequests 通用 JSON-RPC 请求体列表.
RPCResponses 通用 JSON-RPC 响应体列表.