etf

package module
v0.0.0-...-56ca2bc Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2013 License: MIT Imports: 7 Imported by: 7

README

etf

Erlang external term format encoding/decoding for Go.

WIP

Build status

Documentation

Index

Constants

View Source
const (
	// Erlang distribution header
	EtDist = byte('D')
)
View Source
const (
	// Erlang external term format version
	EtVersion = byte(131)
)

Variables

View Source
var (
	ErrFloatScan = fmt.Errorf("read: failed to sscanf float")
)

Functions

This section is empty.

Types

type Atom

type Atom string

type Context

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

func (*Context) Read

func (c *Context) Read(r io.Reader) (term Term, err error)

func (*Context) ReadDist

func (c *Context) ReadDist(r io.Reader) (err error)

func (*Context) Write

func (c *Context) Write(w io.Writer, term interface{}) (err error)

func (*Context) WriteDist

func (c *Context) WriteDist(w io.Writer, _ []Term) (err error)

type ErrUnknownTerm

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

func (*ErrUnknownTerm) Error

func (e *ErrUnknownTerm) Error() string

type ErrUnknownType

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

func (*ErrUnknownType) Error

func (e *ErrUnknownType) Error() string

type Export

type Export struct {
	Module   Atom
	Function Atom
	Arity    byte
}

type Function

type Function struct {
	Arity     byte
	Unique    [16]byte
	Index     uint32
	Free      uint32
	Module    Atom
	OldIndex  uint32
	OldUnique uint32
	Pid       Pid
	FreeVars  []Term
}

type List

type List []Term

type Pid

type Pid struct {
	Node     Atom
	Id       uint32
	Serial   uint32
	Creation byte
}

type Port

type Port struct {
	Node     Atom
	Id       uint32
	Creation byte
}

type Ref

type Ref struct {
	Node     Atom
	Creation byte
	Id       []uint32
}

type Term

type Term interface{}

type Tuple

type Tuple []Term

func (Tuple) Element

func (t Tuple) Element(i int) Term

Directories

Path Synopsis
Package etf provides an API to decode Erlang terms into Go data structures and vice versa.
Package etf provides an API to decode Erlang terms into Go data structures and vice versa.

Jump to

Keyboard shortcuts

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