encdec

package
v0.0.0-...-c5655c4 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2017 License: Apache-2.0 Imports: 2 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Decoder

type Decoder interface {
	Decode() ([]record.Record, error)
}

Decoder defines the record decode interface

type Encoder

type Encoder interface {
	Encode([]record.Record) error
}

Encoder defines the record encode interface

type Factory

type Factory interface {
	NewEncoder(io.Writer) Encoder
	NewDecoder(io.Reader) Decoder
	Type() Type
}

Factory defines the record encode/decode factory interface Note: Assumption is made that there is only one encoder at a time so it can write data to the target without worrying about concurrent writes to the same stream. Multiplexing is not supported.

type Type

type Type int

Type defines the kind of encoder/decoder

const (
	// Binary type for binary encoder/decoder
	Binary Type = iota

	// Gob type for Gob encoder/decoder
	Gob
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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