add service b

This commit is contained in:
2025-10-30 11:40:41 +01:00
parent 90020de1ec
commit e0929aff56
8 changed files with 203 additions and 7 deletions
@@ -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
}