egain

package
v0.0.0-...-a4304fd Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewFetcher

func NewFetcher(opts ...Option) (*Client, error)

func (*Client) Fetch

func (c *Client) Fetch(ctx context.Context) (r []*SensorReading, err error)

type Fetcher

type Fetcher interface {
	Fetch(ctx context.Context) ([]*SensorReading, error)
}

type Option

type Option func(c *Client) error

func WithLogger

func WithLogger(l *zap.Logger) Option

func WithSensors

func WithSensors(s []Sensor) Option

type Sensor

type Sensor struct {
	Location string
	SensorID string
	// contains filtered or unexported fields
}

type SensorReading

type SensorReading struct {
	Sensor
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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