Documentation ¶
Index ¶
Constants ¶
View Source
const (
SundsvallAnlaggningPrefix string = "se:sundsvall:facilities:"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Datastore ¶
type Datastore interface { GetBeachFromID(id string) (*domain.Beach, error) GetAllBeaches() ([]domain.Beach, error) UpdateWaterTemperatureFromDeviceID(device string, temp float64, observedAt time.Time) (string, error) GetTrailFromID(id string) (*domain.ExerciseTrail, error) GetAllTrails() ([]domain.ExerciseTrail, error) SetTrailOpenStatus(trailID string, isOpen bool) error UpdateTrailLastPreparationTime(trailID string, dateLastPreparation time.Time) error }
Datastore is an interface that abstracts away the database implementation
type Feature ¶
type Feature struct { ID int64 `json:"id"` Properties FeatureProps `json:"properties"` Geometry FeatureGeom `json:"geometry"` }
type FeatureCollection ¶
type FeatureGeom ¶
type FeatureGeom struct { Type string `json:"type"` Coordinates json.RawMessage `json:"coordinates"` }
type FeaturePropField ¶
type FeaturePropField struct { ID int64 `json:"id"` Value json.RawMessage `json:"value"` }
type FeatureProps ¶
Click to show internal directories.
Click to hide internal directories.