store

package
v0.0.0-...-c43ceac Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLocationStore

func NewLocationStore(postgresConn *pgxpool.Pool) *locationStore

func NewTempStore

func NewTempStore(postgresConn *pgxpool.Pool) *tempStore

Types

type LocationStore

type LocationStore interface {
	CreateLocation(name string) (*telemetry.Location, error)
	GetLocations() ([]*telemetry.Location, error)
}

type TempStore

type TempStore interface {
	CreateTemp(temp float32, locationId int32) (*empty.Empty, error)
	GetTemp(locationId int32) ([]float32, error)
}

Jump to

Keyboard shortcuts

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