Documentation
¶
Index ¶
- func IsCanceled(err error) bool
- func JSONToStruct(data []byte, v interface{}) error
- func NewJSONRPCError(id string, code int, message string, data interface{}) (*protocol.JSONRPCMessage, error)
- func NewJSONRPCNotification(method string, params interface{}) (*protocol.JSONRPCMessage, error)
- func NewJSONRPCRequest(method string, params interface{}) (*protocol.JSONRPCMessage, error)
- func NewJSONRPCResponse(id string, result interface{}) (*protocol.JSONRPCMessage, error)
- func StructToJSON(v interface{}) ([]byte, error)
- func StructToJSONSchema(v interface{}) (protocol.JSONSchema, error)
- func ValidateJSONRPCMessage(msg *protocol.JSONRPCMessage) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsCanceled ¶
func JSONToStruct ¶
func NewJSONRPCError ¶
func NewJSONRPCNotification ¶
func NewJSONRPCNotification(method string, params interface{}) (*protocol.JSONRPCMessage, error)
func NewJSONRPCRequest ¶
func NewJSONRPCRequest(method string, params interface{}) (*protocol.JSONRPCMessage, error)
func NewJSONRPCResponse ¶
func NewJSONRPCResponse(id string, result interface{}) (*protocol.JSONRPCMessage, error)
func StructToJSON ¶
func StructToJSONSchema ¶
func StructToJSONSchema(v interface{}) (protocol.JSONSchema, error)
func ValidateJSONRPCMessage ¶
func ValidateJSONRPCMessage(msg *protocol.JSONRPCMessage) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.