Documentation ¶
Index ¶
- Constants
- Variables
- func NewRetrieveBeachByIDHandler(ctx context.Context, beachService beaches.BeachService) http.HandlerFunc
- func NewRetrieveBeachesHandler(ctx context.Context, beachService beaches.BeachService) http.HandlerFunc
- func NewRetrieveCityworksByIDHandler(ctx context.Context, cityworkSvc citywork.CityworksService) http.HandlerFunc
- func NewRetrieveCityworksHandler(ctx context.Context, cityworkSvc citywork.CityworksService) http.HandlerFunc
- func NewRetrieveExerciseTrailByIDHandler(ctx context.Context, trailService exercisetrails.ExerciseTrailService) http.HandlerFunc
- func NewRetrieveExerciseTrailsHandler(ctx context.Context, trailService exercisetrails.ExerciseTrailService) http.HandlerFunc
- func NewRetrieveRoadAccidentByIDHandler(ctx context.Context, roadAccidentSvc roadaccidents.RoadAccidentService) http.HandlerFunc
- func NewRetrieveRoadAccidentsHandler(ctx context.Context, roadAccidentSvc roadaccidents.RoadAccidentService) http.HandlerFunc
- func NewRetrieveSportsFieldByIDHandler(ctx context.Context, sfsvc sportsfields.SportsFieldService) http.HandlerFunc
- func NewRetrieveSportsFieldsHandler(ctx context.Context, sfsvc sportsfields.SportsFieldService) http.HandlerFunc
- func NewRetrieveSportsVenueByIDHandler(ctx context.Context, sfsvc sportsvenues.SportsVenueService) http.HandlerFunc
- func NewRetrieveSportsVenuesHandler(ctx context.Context, sfsvc sportsvenues.SportsVenueService) http.HandlerFunc
- func NewRetrieveTrafficFlowsHandler(ctx context.Context, contextBroker string) http.HandlerFunc
- func NewRetrieveWaterQualityByIDHandler(ctx context.Context, svc waterquality.WaterQualityService) http.HandlerFunc
- func NewRetrieveWaterQualityHandler(ctx context.Context, svc waterquality.WaterQualityService) http.HandlerFunc
- func NewRetrieveWeatherByIDHandler(ctx context.Context, svc services.WeatherService) http.HandlerFunc
- func NewRetrieveWeatherHandler(ctx context.Context, svc services.WeatherService) http.HandlerFunc
- type BeachMapperFunc
- type SportsFieldsMapperFunc
- type SportsVenuesMapperFunc
- type TrailMapperFunc
- type WaterQualityMapperFunc
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 NewRetrieveWaterQualityHandler ¶
func NewRetrieveWaterQualityHandler(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 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)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.