add service b
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
package meteo
|
||||
|
||||
import (
|
||||
"context"
|
||||
"sync"
|
||||
)
|
||||
|
||||
type inMemory struct {
|
||||
data map[string]MeteoData
|
||||
mu *sync.RWMutex
|
||||
}
|
||||
type Service struct {
|
||||
inMemory
|
||||
}
|
||||
|
||||
func NewService() *Service {
|
||||
return &Service{}
|
||||
}
|
||||
|
||||
func (s *Service) GetWeatherByCity(ctx context.Context, params GetMeteoData) ([]MeteoData, error) {
|
||||
return []MeteoData{}, nil
|
||||
}
|
||||
Reference in New Issue
Block a user