config

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ListenAddress      string   `env:"LISTEN_ADDRESS, default=:8080"`
	AdminListenAddress string   `env:"ADMIN_LISTEN_ADDRESS, default=:8081"`
	IdmURL             string   `env:"IDM_URL"`
	AllowedOrigins     []string `env:"ALLOWED_ORIGINS, default=*"`
	MongoDBURL         string   `env:"MONGO_URL"`
	MongoDatabaseName  string   `env:"MONGO_DATABASE, default=customer-service"`
	UploadDirectory    string   `env:"DATA_DIRECTORY, required"`
	EventsServiceUrl   string   `env:"EVENT_SERVICE_URL"`
}

func LoadConfig

func LoadConfig(ctx context.Context) (*Config, error)

Jump to

Keyboard shortcuts

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