icodec

package module
v0.0.0-...-eb8a496 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2018 License: Apache-2.0 Imports: 1 Imported by: 0

README

icodec

A codec library

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Codec

type Codec interface {
	Name() string
	NewEncoder(io.Writer) Encoder
	NewDecoder(io.Reader) Decoder
}

A codec for coding ghord messages

type Decoder

type Decoder interface {
	// Decode into the given interface, or error
	Decode(v interface{}) error
}

Standatd decoder interface, usually created from an io.Reader Important: Needs to be stateless, in that each call to Decode() must act the same as any other call

type Encoder

type Encoder interface {
	// Encode given interface, or error
	Encode(v interface{}) error
}

Standard encoder interface, usually created from an io.Writer Important: Needs to be stateless, in that each call to Encode() must act the same as any other call

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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