Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JSON ¶
type JSON struct{}
JSON is a codec that encodes and decodes TaskRequest and TaskResponse in JSON format.
func (JSON) DecodeTaskRequest ¶
func (j JSON) DecodeTaskRequest(data []byte) (orbital.TaskRequest, error)
DecodeTaskRequest decodes JSON data into a TaskRequest.
func (JSON) DecodeTaskResponse ¶
func (j JSON) DecodeTaskResponse(data []byte) (orbital.TaskResponse, error)
DecodeTaskResponse decodes JSON data into a TaskResponse.
func (JSON) EncodeTaskRequest ¶
func (j JSON) EncodeTaskRequest(req orbital.TaskRequest) ([]byte, error)
EncodeTaskRequest encodes a TaskRequest into JSON format.
func (JSON) EncodeTaskResponse ¶
func (j JSON) EncodeTaskResponse(resp orbital.TaskResponse) ([]byte, error)
EncodeTaskResponse encodes a TaskResponse into JSON format.
Click to show internal directories.
Click to hide internal directories.