sensus

package
v0.0.0-...-30aa9e1 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2023 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidField  = errors.New("invalid field in record")
	ErrInvalidRecord = errors.New("invalid record format")
	ErrInvalidHeader = errors.New("invalid CSV header")
)

Functions

This section is empty.

Types

type MeterReading

type MeterReading struct {
	MeterID          string
	ReadingTimestamp time.Time
	ReadingValue     int
	LowBatteryAlert  bool
	LeakAlert        bool
	TamperAlert      bool
	MeterErrorAlert  bool
	BackflowAlert    bool
	BrokenPipeAlert  bool
	EmptyPipeAlert   bool
	CustomAlert      bool
}

func ParseCSV

func ParseCSV(f io.Reader, filename string) ([]MeterReading, []error)

Jump to

Keyboard shortcuts

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