web

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2020 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BetweenGenerator

func BetweenGenerator(config WebConfig) func(w http.ResponseWriter, r *http.Request)

BetweenGenerator generates a HandlerFunc to respond to between calls

func DiscoveryGenerator

func DiscoveryGenerator(config WebConfig) func(w http.ResponseWriter, r *http.Request)

func Init

func Init(config config.BoundConfig)

func LatestGenerator

func LatestGenerator(config WebConfig) func(w http.ResponseWriter, r *http.Request)

Types

type WebConfig

type WebConfig struct {
	DB           database.CalorDB
	Thermometers []config.BoundThermometer
}

Jump to

Keyboard shortcuts

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