encoder

package
v0.0.0-...-3c806ea Latest Latest
Warning

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

Go to latest
Published: May 4, 2015 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Base32

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

func NewBase32

func NewBase32() *Base32

func (*Base32) Config

func (e *Base32) Config(opt map[string]interface{}) (err error)

func (*Base32) Decode

func (e *Base32) Decode(src string) (out []byte, err error)

func (*Base32) Encode

func (e *Base32) Encode(src []byte) (out string, err error)

type EUI64

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

func NewEUI64

func NewEUI64() *EUI64

func (*EUI64) Config

func (e *EUI64) Config(opt map[string]interface{}) (err error)

func (*EUI64) Decode

func (e *EUI64) Decode(src string) (out []byte, err error)

func (*EUI64) Encode

func (e *EUI64) Encode(src []byte) (out string, err error)

func (*EUI64) ParseOUI

func (e *EUI64) ParseOUI(filename string) error

func (*EUI64) Vendor

func (e *EUI64) Vendor(oui string) string

type Encoder

type Encoder interface {
	Config(opt map[string]interface{}) (err error)
	Encode(src []byte) (out string, err error)
	Decode(src string) (out []byte, err error)
}

func NewEncoder

func NewEncoder(t string, opt map[string]interface{}) (e Encoder, err error)

Jump to

Keyboard shortcuts

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