Documentation
¶
Index ¶
- func Config() *config
- func GetSecret(key string) string
- func Load(paths ...string) error
- func LoadFromAWSSecrets(ctx context.Context, secretName string) (map[string]string, error)
- func LoadWithSecrets(secrets map[string]string, paths ...string) error
- type App
- type AuthConfig
- type Cleanup
- type Email
- type GitHub
- type H3
- type HttpClient
- type HttpServer
- type JwtToken
- type Postgres
- type RateLimit
- type Redis
- type SQS
- type Storage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadFromAWSSecrets ¶
LoadFromAWSSecrets fetches secrets from AWS Secrets Manager and initializes the environment. It returns the secret map so callers can pass it to LoadWithSecrets for full configuration orchestration.
func LoadWithSecrets ¶
LoadWithSecrets loads configuration from .env files and merges them with provided secrets. Caller-provided secrets take precedence over .env entries to allow runtime overrides (e.g. from AWS Secrets Manager).
Types ¶
type AuthConfig ¶
type AuthConfig interface {
MaxSessions() int
}
type HttpClient ¶
type HttpServer ¶
Click to show internal directories.
Click to hide internal directories.