server

package
v0.0.0-...-b8e387a Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect() *sql.DB

func InitDb

func InitDb(db *sql.DB)

Types

type HttpHandler

type HttpHandler struct{}

func (HttpHandler) ServeHTTP

func (h HttpHandler) ServeHTTP(res http.ResponseWriter, req *http.Request)

type TemperatureData

type TemperatureData struct {
	Timestamp   string
	OutdoorTemp float64
	IndoorTemp  float64
	Forecast    float64
}

func (TemperatureData) DataAreEqual

func (td TemperatureData) DataAreEqual(other TemperatureData) bool

DataAreEqual check if all data fields (e.g. not Timestamp) in two structures match

Jump to

Keyboard shortcuts

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