reporting

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

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

Go to latest
Published: Dec 27, 2019 License: MIT Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Report

type Report struct {
	Reading struct {
		Type         string    `json:"type"`
		RawValue     string    `json:"raw_value"`
		DecodedValue string    `json:"decoded_value"`
		Timestamp    time.Time `json:"timestamp"`
	} `json:"reading"`
}

type Reporter

type Reporter struct {
	Client *http.Client
	Url    string
	ApiKey string
}

func NewReporter

func NewReporter(c config.Config) (r Reporter)

func (*Reporter) ReportReading

func (rp *Reporter) ReportReading(r protocol.Reading) (err error)

Jump to

Keyboard shortcuts

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