package service

import (
	"net/http"

	"git.intra.yksa.space/gsn/predictor/internal/pkg/grib"
	"git.intra.yksa.space/gsn/predictor/pkg/redis"
)

type Config struct {
	// GRIB Configuration
	Grib grib.Config `envPrefix:"GRIB_"`

	// Redis Configuration
	Redis redis.Config `envPrefix:"REDIS_"`
}

func (c *Config) CreateHTTPClient() *http.Client {
	return &http.Client{
		Timeout: c.Grib.Timeout,
	}
}
