Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JsonRpcEnvelope ¶
type JsonRpcEnvelope struct {
Method types.CommandType `json:"method"`
JsonRpc string `json:"jsonrpc"`
Id int `json:"id"`
}
type JsonRpcMessage ¶
type JsonRpcMessage[T RpcRawParams] struct { JsonRpcEnvelope Params T `json:"params"` }
func NewJsonRpcMessage ¶
func NewJsonRpcMessage[T RpcRawParams](method types.CommandType, id int, params T) *JsonRpcMessage[T]
type JsonRpcMessageRaw ¶
type JsonRpcMessageRaw struct {
JsonRpcEnvelope
Params json.RawMessage `json:"params"`
}
type JsonRpcResult ¶
type JsonRpcResult struct {
// contains filtered or unexported fields
}
func NewJsonRpcResult ¶
func NewJsonRpcResult(id int, err error, result interfaces.Output) *JsonRpcResult
func (*JsonRpcResult) JsonMarshall ¶
type RpcRawParams ¶
type RpcRawParams interface {
GetMethod() types.CommandType
UnRaw() (executor.RunCommand, error)
}
Click to show internal directories.
Click to hide internal directories.