config

package
v0.0.0-...-278e2be Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: CC0-1.0 Imports: 4 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect(settings Settings) (*gorm.DB, error)

Types

type Settings

type Settings struct {
	Port                 string   `envconfig:"port" default:"3000"`
	BrokerUsername       string   `envconfig:"broker_username" required:"true"`
	BrokerPassword       string   `envconfig:"broker_password" required:"true"`
	DatabaseUrl          string   `envconfig:"database_url" required:"true"`
	Email                string   `envconfig:"email" required:"true"`
	AcmeUrl              string   `envconfig:"acme_url" required:"true"`
	Bucket               string   `envconfig:"bucket" required:"true"`
	IamPathPrefix        string   `envconfig:"iam_path_prefix" default:"letsencrypt"`
	CloudFrontPrefix     string   `envconfig:"cloudfront_prefix" default:""`
	AwsAccessKeyId       string   `envconfig:"aws_access_key_id" required:"true"`
	AwsSecretAccessKey   string   `envconfig:"aws_secret_access_key" required:"true"`
	AwsDefaultRegion     string   `envconfig:"aws_default_region" required:"true"`
	ServerSideEncryption string   `envconfig:"server_side_encryption"`
	APIAddress           string   `envconfig:"api_address" required:"true"`
	ClientID             string   `envconfig:"client_id" required:"true"`
	ClientSecret         string   `envconfig:"client_secret" required:"true"`
	DefaultOrigin        string   `envconfig:"default_origin" required:"true"`
	Schedule             string   `envconfig:"schedule" default:"0 0 * * * *"`
	UserIdPool           []string `envconfig:"user_id_pool" required:"true"`
}

func NewSettings

func NewSettings() (Settings, error)

Jump to

Keyboard shortcuts

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