Documentation
¶
Overview ¶
Package libanemos provides structures and functions to work with Anemos data.
Index ¶
- func CreateCache(client *redis.Client, anemosData []interface{}) error
- type AnemosGet
- type Earthquake
- type FilterOptions
- type Forecast
- type PostCode
- type Warning
- type WeatherEarthquake
- type WeatherEarthquakelist
- type WeatherForecast
- type WeatherForecastlist
- type WeatherWarning
- type WeatherWarninglist
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateCache ¶
func CreateCache(client *redis.Client, anemosData []interface{}) error
Types ¶
type AnemosGet ¶
type AnemosGet struct {
Data []anemosData[any]
}
AnemosGet is a structure that holds a slice of anemosData of any type.
func NewAnemosGet ¶
func NewAnemosGet() *AnemosGet
NewAnemosGet initializes and returns a pointer to an AnemosGet instance with an empty slice of anemosData.
type Earthquake ¶
type Earthquake struct {
// contains filtered or unexported fields
}
type FilterOptions ¶
type FilterOptions struct { PostCode optional.Option[PostCode] StartTime optional.Option[time.Time] EndTime optional.Option[time.Time] }
FilterOptions is a structure that holds optional values for filtering anemosData.
type PostCode ¶
type PostCode string
PostCode is a type alias for a string representing a postal code.
type WeatherEarthquake ¶
type WeatherEarthquake struct {
// contains filtered or unexported fields
}
type WeatherEarthquakelist ¶
type WeatherEarthquakelist struct {
// contains filtered or unexported fields
}
func (WeatherEarthquakelist) Filter ¶
func (m WeatherEarthquakelist) Filter(filterOption FilterOptions) WeatherEarthquakelist
type WeatherForecast ¶
type WeatherForecast struct {
// contains filtered or unexported fields
}
type WeatherForecastlist ¶
type WeatherForecastlist struct {
// contains filtered or unexported fields
}
func (WeatherForecastlist) Filter ¶
func (m WeatherForecastlist) Filter(filterOption FilterOptions) WeatherForecastlist
type WeatherWarning ¶
type WeatherWarning struct {
// contains filtered or unexported fields
}
type WeatherWarninglist ¶
type WeatherWarninglist struct {
// contains filtered or unexported fields
}
func (WeatherWarninglist) Filter ¶
func (m WeatherWarninglist) Filter(filterOption FilterOptions) WeatherWarninglist
func (WeatherWarninglist) WeatherWarningFilter ¶
func (m WeatherWarninglist) WeatherWarningFilter(filterOption FilterOptions) WeatherWarninglist
Click to show internal directories.
Click to hide internal directories.