package
0.0.0-20250117074236-2ff0d9ba57f2
Repository: https://github.com/latticebclab/go-lattice.git
Documentation: pkg.go.dev

# Functions

NewHttpApi creates a new HTTP API for the Lattice node.
NewJsonRpcBody creates a new JSON-RPC body.
NewJwt creates a new JWT instance.
Post
Post send http request use post method Parameters: - ctx context.Context: 超时取消 - url string: 请求路径,示例:http://192.168.1.20:13000 - body sonRpcBody: any, 请求体 - headers map[string]string: 请求头 - tr http.Transport: Returns: - []byte: 响应内容 - error: 错误.

# Structs

HttpApiInitParam 初始化HTTP API的参数.
JsonRpcBody is the request structure for JSON-RPC requests.
No description provided by the author
JsonRpcResponse is the response structure for JSON-RPC requests.
JwtTokenCache is the cache for the JWT token.

# Interfaces

HttpApi This is the interface for the HTTP API of the Lattice node.
Jwt is the interface for the JWT operations.