http

package
v0.0.0-...-7f2e039 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoOfficeFound   = errors.New("404")
	ErrNoForecastFound = errors.New("500")
)

Functions

func GetForecast

func GetForecast(grid *params.Grid) (*params.Forecast, error)

GetForecast returns the forecast for the grid

func GetForecastHandler

func GetForecastHandler(w http.ResponseWriter, r *http.Request)

GetForecastHandler is the handler for the /forecast endpoint

func GetOfficeAndGrid

func GetOfficeAndGrid(latitude string, longitude string) (*params.Grid, error)

GetOfficeAndGrid returns the office and grid

Types

This section is empty.

Jump to

Keyboard shortcuts

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