Versions in this module Expand all Collapse all v0 v0.4.0 May 12, 2026 Changes in this version + type JsonRpcEnvelope struct + Id int + JsonRpc string + Method types.CommandType + type JsonRpcMessage struct + Params T + func NewJsonRpcMessage[T RpcRawParams](method types.CommandType, id int, params T) *JsonRpcMessage[T] + type JsonRpcMessageRaw struct + Params json.RawMessage + type JsonRpcResult struct + func NewJsonRpcResult(id int, err error, result interfaces.Output) *JsonRpcResult + func (j *JsonRpcResult) JsonMarshall(ctx context.Context, outFormat OutFormat) ([]byte, error) + type OutFormat string + var OutFormatDetailed OutFormat = "detailed" + var OutFormatJson OutFormat = "json" + var OutFormatString OutFormat = "string" + var OutFormatUnknown OutFormat = "" + func ParseOutFormat(s string) OutFormat + func (o OutFormat) String() string + type RpcRawParams interface + GetMethod func() types.CommandType + UnRaw func() (executor.RunCommand, error) v0.3.0 Sep 26, 2025