garden

package
Version: v0.0.0-...-4eaba90 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2021 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func GardenHandler

func GardenHandler(writer http.ResponseWriter, request *http.Request)

func GetSoilReading

func GetSoilReading()

func Init

func Init()

func RegisterHandlers

func RegisterHandlers(mainConfig config.Configuration)

func SoilHandle

func SoilHandle(writer http.ResponseWriter, request *http.Request)

func StartWater

func StartWater()

func WaterOff

func WaterOff(writer http.ResponseWriter, request *http.Request)

func WaterOn

func WaterOn(writer http.ResponseWriter, request *http.Request)

func WaterStatus

func WaterStatus(writer http.ResponseWriter, request *http.Request)

Types

type Garden

type Garden struct {
	SoilReading int `json:"soilReading"`
}

type Water

type Water struct {
	Status string `json:"status"`
}

Jump to

Keyboard shortcuts

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