parse

package
Version: v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2015 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TimeFormat = "2006-01-02T15:04:05.000"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

type Data struct {
	Bits  string
	Bytes []byte
}

func NewDataFromBits

func NewDataFromBits(data string) (d Data)

func NewDataFromBytes

func NewDataFromBytes(data []byte) (d Data)

type LogMessage

type LogMessage struct {
	Time   time.Time
	Offset int64
	Length int
	Message
}

func (LogMessage) Record

func (msg LogMessage) Record() (r []string)

func (LogMessage) String

func (msg LogMessage) String() string

func (LogMessage) StringNoOffset

func (msg LogMessage) StringNoOffset() string

type Message

type Message interface {
	csv.Recorder
	MsgType() string
	MeterID() uint32
	MeterType() uint8
}

type Parser

type Parser interface {
	Parse([]int) []Message
	Dec() decode.Decoder
	Cfg() decode.PacketConfig
	Log()
}

Source Files

Jump to

Keyboard shortcuts

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