Documentation
¶
Index ¶
- type JSRequest
- func (j *JSRequest) Close() error
- func (j *JSRequest) Output() []byte
- func (j *JSRequest) ReadRequestBody(i interface{}) error
- func (j *JSRequest) ReadRequestHeader(req *rpc.Request) error
- func (j *JSRequest) RequestID(id string)
- func (j *JSRequest) WriteResponse(res *rpc.Response, i interface{}) error
- type JSResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JSRequest ¶
type JSRequest struct {
Method string `json:"method"`
Params json.RawMessage `json:"params"`
ID json.RawMessage `json:"id"`
// contains filtered or unexported fields
}
func (*JSRequest) ReadRequestBody ¶
type JSResponse ¶
type JSResponse struct {
Result interface{} `json:"result"`
Error interface{} `json:"error"`
ID json.RawMessage `json:"id,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.