weather-api/weathersource/weather-source.go
2021-04-05 11:39:55 +02:00

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()
}