codec

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 6, 2025 License: Apache-2.0 Imports: 2 Imported by: 1

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL