Documentation ¶
Index ¶
Constants ¶
View Source
const EnvironmentVariablePrefix = "MODM"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AppConfig ¶
type AppConfig struct { Azure AzureSettings Database DatabaseSettings Http HttpSettings Logging LoggingSettings Environment string `mapstructure:"GO_ENV"` ReadinessFilePath string `mapstructure:"READINESS_FILE_PATH"` }
func (*AppConfig) GetDatabaseOptions ¶
func (c *AppConfig) GetDatabaseOptions() *data.DatabaseOptions
func (*AppConfig) GetLoggingOptions ¶
func (c *AppConfig) GetLoggingOptions(label string) *log.LoggingOptions
func (*AppConfig) GetPublicBaseUrl ¶
func (*AppConfig) GetReadinessFilePath ¶
func (*AppConfig) IsDevelopment ¶
type AzureSettings ¶
type AzureSettings struct { ClientId string `mapstructure:"AZURE_CLIENT_ID"` TenantId string `mapstructure:"AZURE_TENANT_ID"` SubscriptionId string `mapstructure:"AZURE_SUBSCRIPTION_ID"` ResourceGroupName string `mapstructure:"AZURE_RESOURCE_GROUP"` Location string `mapstructure:"AZURE_LOCATION"` ServiceBusNamespace string `mapstructure:"AZURE_SERVICEBUS_NAMESPACE"` }
The azure settings
func (*AzureSettings) GetFullQualifiedNamespace ¶
func (s *AzureSettings) GetFullQualifiedNamespace() string
func (*AzureSettings) GetResourceGroupId ¶
func (s *AzureSettings) GetResourceGroupId() string
type DatabaseSettings ¶
type DatabaseSettings struct { Path string `mapstructure:"DB_PATH"` UseInMemory bool `mapstructure:"DB_USE_INMEMEORY"` }
The database settings
type HttpSettings ¶
type LoggingSettings ¶
Click to show internal directories.
Click to hide internal directories.