Documentation ¶
Index ¶
Constants ¶
View Source
const (
NatsRpcErrorKey = "NatsRpcError"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CodeMessageError ¶
type DetailsError ¶
type DetailsError interface { CodeMessageError GetDetails() any }
type Request ¶
type Request struct { ServiceMethod string `json:"serviceMethod"` Args json.RawMessage `json:"args"` }
type Response ¶
type Response struct { Error *RpcError `json:"error,omitempty"` Result json.RawMessage `json:"result,omitempty"` }
type RpcError ¶
type RpcError struct {
// contains filtered or unexported fields
}
func NewRpcError ¶
func ParseRpcError ¶
func ParseRpcError() *RpcError
func (*RpcError) GetDetails ¶
func (*RpcError) GetMessage ¶
func (*RpcError) UnmarshalJSON ¶
only accept string
Click to show internal directories.
Click to hide internal directories.