parser

package
v0.0.0-...-fd45449 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const LocationData = "coverage"

Variables

View Source
var InvalidPayloadError = errors.New("invalid payload")

Functions

This section is empty.

Types

type Parser

type Parser interface {
	Parse(buf []byte) ([]model.Metric, error)
	//ParseLine(line string) (model.Metric, error)
	SetDefaultTags(tags map[string]string)
}

type Payload

type Payload struct {
	Size  int
	Bytes []byte
}

func (Payload) GetLocation

func (p Payload) GetLocation() (float64, float64, error)

func (Payload) GetPower

func (p Payload) GetPower() (int8, error)

func (Payload) IsValidPayload

func (p Payload) IsValidPayload() bool

func (Payload) MarshalJSON

func (p Payload) MarshalJSON() ([]byte, error)

func (*Payload) UnmarshalJSON

func (p *Payload) UnmarshalJSON(data []byte) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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