handlers

package
v0.0.0-...-61e9378 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: AGPL-3.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NUTSCodePrefix      string = "https://badplatsen.havochvatten.se/badplatsen/karta/#/bath/"
	WikidataPrefix      string = "https://www.wikidata.org/wiki/"
	YearMonthDayISO8601 string = "2006-01-02"
)

Variables

View Source
var ErrInvalidCoordinates error = errors.New("invalid coordinates specified")
View Source
var ErrNoCoordsInQuery error = errors.New("no coordinates specified")

Functions

func NewRetrieveBeachByIDHandler

func NewRetrieveBeachByIDHandler(ctx context.Context, beachService beaches.BeachService) http.HandlerFunc

func NewRetrieveBeachesHandler

func NewRetrieveBeachesHandler(ctx context.Context, beachService beaches.BeachService) http.HandlerFunc

func NewRetrieveCityworksByIDHandler

func NewRetrieveCityworksByIDHandler(ctx context.Context, cityworkSvc citywork.CityworksService) http.HandlerFunc

func NewRetrieveCityworksHandler

func NewRetrieveCityworksHandler(ctx context.Context, cityworkSvc citywork.CityworksService) http.HandlerFunc

func NewRetrieveExerciseTrailByIDHandler

func NewRetrieveExerciseTrailByIDHandler(ctx context.Context, trailService exercisetrails.ExerciseTrailService) http.HandlerFunc

func NewRetrieveExerciseTrailsHandler

func NewRetrieveExerciseTrailsHandler(ctx context.Context, trailService exercisetrails.ExerciseTrailService) http.HandlerFunc

func NewRetrieveRoadAccidentByIDHandler

func NewRetrieveRoadAccidentByIDHandler(ctx context.Context, roadAccidentSvc roadaccidents.RoadAccidentService) http.HandlerFunc

func NewRetrieveRoadAccidentsHandler

func NewRetrieveRoadAccidentsHandler(ctx context.Context, roadAccidentSvc roadaccidents.RoadAccidentService) http.HandlerFunc

func NewRetrieveSportsFieldByIDHandler

func NewRetrieveSportsFieldByIDHandler(ctx context.Context, sfsvc sportsfields.SportsFieldService) http.HandlerFunc

func NewRetrieveSportsFieldsHandler

func NewRetrieveSportsFieldsHandler(ctx context.Context, sfsvc sportsfields.SportsFieldService) http.HandlerFunc

func NewRetrieveSportsVenueByIDHandler

func NewRetrieveSportsVenueByIDHandler(ctx context.Context, sfsvc sportsvenues.SportsVenueService) http.HandlerFunc

func NewRetrieveSportsVenuesHandler

func NewRetrieveSportsVenuesHandler(ctx context.Context, sfsvc sportsvenues.SportsVenueService) http.HandlerFunc

func NewRetrieveTrafficFlowsHandler

func NewRetrieveTrafficFlowsHandler(ctx context.Context, contextBroker string) http.HandlerFunc

func NewRetrieveWaterQualityByIDHandler

func NewRetrieveWaterQualityByIDHandler(ctx context.Context, svc waterquality.WaterQualityService) http.HandlerFunc

func NewRetrieveWeatherByIDHandler

func NewRetrieveWeatherByIDHandler(ctx context.Context, svc services.WeatherService) http.HandlerFunc

func NewRetrieveWeatherHandler

func NewRetrieveWeatherHandler(ctx context.Context, svc services.WeatherService) http.HandlerFunc

Types

type BeachMapperFunc

type BeachMapperFunc func(*beaches.Beach) ([]byte, error)

type SportsFieldsMapperFunc

type SportsFieldsMapperFunc func(*domain.SportsField) ([]byte, error)

type SportsVenuesMapperFunc

type SportsVenuesMapperFunc func(*domain.SportsVenue) ([]byte, error)

type TrailMapperFunc

type TrailMapperFunc func(*domain.ExerciseTrail) ([]byte, error)

type WaterQualityMapperFunc

type WaterQualityMapperFunc func(*domain.WaterQuality) ([]byte, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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