clients

package
v0.0.0-...-6198046 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 14, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAwsSession

func GetAwsSession(region string) *session.Session

Types

type AmbientWeatherClient

type AmbientWeatherClient struct {
	// contains filtered or unexported fields
}

func (*AmbientWeatherClient) GetObservations

func (c *AmbientWeatherClient) GetObservations(station *models.WeatherStation, start time.Time, end time.Time) ([]*models.Observation, error)

func (*AmbientWeatherClient) GetWeatherStations

func (c *AmbientWeatherClient) GetWeatherStations() ([]*models.WeatherStation, error)

type SecretClient

type SecretClient interface {
	GetSecret(name string) (string, error)
}

func NewSecretClient

func NewSecretClient(appConfig *config.AppConfig) SecretClient

type SecretManagerClient

type SecretManagerClient struct {
	// contains filtered or unexported fields
}

func (*SecretManagerClient) GetSecret

func (c *SecretManagerClient) GetSecret(name string) (string, error)

type WeatherDataClient

type WeatherDataClient interface {
	GetWeatherStations() ([]*models.WeatherStation, error)
	GetObservations(station *models.WeatherStation, start time.Time, end time.Time) ([]*models.Observation, error)
}

func NewWeatherDataClient

func NewWeatherDataClient(appConfig *config.AppConfig, secretClient SecretClient) (WeatherDataClient, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL