config

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: MIT Imports: 15 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 {
	IdmURL                 string   `env:"IDM_URL" json:"idmURL"`
	RosterdURL             string   `env:"ROSTERD_URL" json:"rosterdUrl"`
	Country                string   `env:"COUNTRY,default=AT" json:"country"`
	MongoURL               string   `env:"MONGO_URL" json:"mongoUrl"`
	Database               string   `env:"DATABASE" json:"database"`
	AllowedOrigins         []string `env:"ALLOWED_ORIGINS" json:"allowedOrigins"`
	ListenAddress          string   `env:"LISTEN" json:"listenAddress"`
	RosterTypeName         string   `env:"ROSTER_TYPE" json:"rosterType"`
	UserPhoneExtensionKeys []string `env:"PHONE_EXTENSION_KEYS" json:"phoneExtensionKeys"`
	FailoverTransferTarget string   `env:"FAILOVER_TRANSFER_TARGET" json:"failoverTransferTarget"`
}

func LoadConfig

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

Jump to

Keyboard shortcuts

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