Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WeatherPersister ¶
type WeatherPersister interface {
PersistWeather(datasource.Weather) error
}
WeatherPersister takes the data from a Weather object and saves it to a persistent storage
func NewSQLStorage ¶
func NewSQLStorage(db *sql.DB) WeatherPersister
NewSQLStorage returns a WeatherPersister that stores data in the database/sql passed
Click to show internal directories.
Click to hide internal directories.