Documentation
¶
Index ¶
- Constants
- func DefaultRequestEncoder(req Request, w io.Writer) error
- func DefaultResponseEncoder(resp Response, w io.Writer) error
- func IterJsonArray(data []byte) iter.Seq2[int, json.RawMessage]
- func IterJsonObject(data []byte) iter.Seq2[string, json.RawMessage]
- func NewServer() *defaultServer
- type Error
- type Id
- type JsonRpcServer
- type Params
- type Request
- type RequestDecoder
- type RequestEncoder
- type Response
- type ResponseDecoder
- type ResponseEncoder
Constants ¶
View Source
const ( ErrorCodeParseError = -32700 ErrorCodeInvalidRequest = -32600 ErrorCodeMethodNotFound = -32601 ErrorCodeInvalidParams = -32602 ErrorCodeInternalError = -32603 ErrorCodeServerError = -32000 )
Variables ¶
This section is empty.
Functions ¶
func IterJsonArray ¶
func IterJsonObject ¶
Types ¶
type JsonRpcServer ¶
type Request ¶
func NewNotification ¶
Click to show internal directories.
Click to hide internal directories.