Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SecretService ¶
type SecretService interface { CreateSecret(secret string) (string, error) RetrieveSecret(id string) (string, error) }
func NewSecretService ¶
func NewSecretService(repo repository.SecretRepository) SecretService
type UserService ¶
type UserService interface { CreateUser(user *model.User) error GetUserByID(id uuid.UUID) (*model.User, error) UpdateUser(user *model.User) error DeleteUser(id uuid.UUID) error ListUsers() ([]*model.User, error) }
func NewUserService ¶
func NewUserService(repo repository.UserRepository) UserService
type WeatherAPIResponse ¶
type WeatherAPIResponse struct { Location WeatherAPIResponseLocation `json:"location"` Current WeatherAPIResponseCurrent `json:"current"` }
type WeatherAPIResponseCurrent ¶
type WeatherAPIResponseCurrent struct { TempF float64 `json:"temp_f"` TempC float64 `json:"temp_c"` Condition WeatherAPIResponseCurrentCondition `json:"condition"` }
type WeatherAPIResponseCurrentCondition ¶
type WeatherAPIResponseCurrentCondition struct {
Text string `json:"text"`
}
type WeatherAPIResponseLocation ¶
type WeatherAPIResponseLocation struct {
Name string `json:"name"`
}
type WeatherService ¶
func NewWeatherService ¶
func NewWeatherService(cfg *config.Config) WeatherService
NewWeatherService creates a new weather service.
Click to show internal directories.
Click to hide internal directories.