codecs

package
v0.0.0-...-af279f6 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2021 License: MIT Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(name string, codec Codec)

func RegisterMeta

func RegisterMeta(name string, metaCodec MetaCodec)

Types

type Codec

type Codec interface {
	RunCodec(input io.Reader, globalMode CodecMode, options map[string]string, output io.Writer) (err error)
}

func Lookup

func Lookup(name string) Codec

type CodecMetaInfo

type CodecMetaInfo struct {
	// contains filtered or unexported fields
}

func (*CodecMetaInfo) AllCodecs

func (c *CodecMetaInfo) AllCodecs() (chan string, chan Codec)

func (*CodecMetaInfo) Lookup

func (c *CodecMetaInfo) Lookup(name string) Codec

func (*CodecMetaInfo) Register

func (c *CodecMetaInfo) Register(name string, codec Codec)

type CodecMode

type CodecMode int
const (
	CodecModeEncoding CodecMode = iota
	CodecModeDecoding
)

type CodecUsage

type CodecUsage interface {
	Usage() string
}

type MetaCodec

type MetaCodec interface {
	RunMetaCodec(input io.Reader, globalMode CodecMode, options map[string]string, metaInfo *CodecMetaInfo, output io.Writer) (err error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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