encode

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TagID uint64 = iota
	TagTopic
	TagDelay
	TagTTR
	TagBody
	TagVersion
)

tag s

View Source
const (
	// TagLength tag length
	TagLength = 1

	// MaxUInt64Length variant max uint64 length
	MaxUInt64Length = 10
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Encoder

type Encoder interface {
	Encode(*job.Job) ([]byte, error)
	Decode([]byte, *job.Job) error
}

Encoder encoder interface

func NewCompress

func NewCompress() Encoder

NewCompress create a json encoder

func NewJSON

func NewJSON() Encoder

NewJSON create a json encoder

Jump to

Keyboard shortcuts

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