handler

package
v0.0.0-...-8ab80d0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler(forecast *service.Forecast) *Handler

func (*Handler) GetAlerts

func (h *Handler) GetAlerts(w http.ResponseWriter, r *http.Request)

GetAlerts godoc

@Summary Get alerts returns all the alerts for the next 7 days

func (*Handler) GetForecast

func (h *Handler) GetForecast(w http.ResponseWriter, r *http.Request)

GetForecast godoc

@Summary Get forecast returns all the data for the next 7 days

Jump to

Keyboard shortcuts

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