configuration

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: May 5, 2026 License: Apache-2.0 Imports: 11 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 {
	MetricsPort                    string `json:"metrics_port"`
	ShardsDb                       string `json:"shards_db"`
	MongoUrl                       string `json:"mongo_url"`
	MongoDatabaseName              string `json:"mongo_database_name"`
	MongoIncidentCollectionName    string `json:"mongo_incident_collection_name"`
	MongoOnIncidentCollectionName  string `json:"mongo_on_incident_collection_name"`
	ApiPort                        string `json:"api_port"`
	ApiLog                         bool   `json:"api_log"`
	Debug                          bool   `json:"debug"`
	NotificationUrl                string `json:"notification_url"`
	DeveloperNotificationUrl       string `json:"developer_notification_url"`
	CamundaIncidentRequestInterval string `json:"camunda_incident_request_interval"`

	LogLevel string `json:"log_level"`
	// contains filtered or unexported fields
}

func LoadConfig

func LoadConfig(location string) (config Config, err error)

loads config from json in location and used environment variables (e.g ZookeeperUrl --> ZOOKEEPER_URL)

func (*Config) GetLogger added in v0.0.11

func (this *Config) GetLogger() *slog.Logger

Jump to

Keyboard shortcuts

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