12 lines
381 B
Go
12 lines
381 B
Go
package weathersource
|
|
|
|
import "weather-data/storage"
|
|
|
|
//NewWeatherDataCallbackFunc Function-Signature for new weather data callback function
|
|
type NewWeatherDataCallbackFunc func(storage.WeatherData) error
|
|
|
|
//WeatherSource is the interface for different weather-source implementations
|
|
type WeatherSource interface {
|
|
AddNewWeatherDataCallback(NewWeatherDataCallbackFunc)
|
|
Close()
|
|
}
|