configuration

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LogEnvConfig = true

Functions

This section is empty.

Types

type Config

type Config struct {
	ServerPort  string `json:"server_port"`
	MetricsPort string `json:"metrics_port"`

	KafkaUrl   string `json:"kafka_url"`
	KafkaGroup string `json:"kafka_group"`

	DeploymentTopic string `json:"deployment_topic"`
	IncidentTopic   string `json:"incident_topic"`

	WrapperDb  string `json:"wrapper_db"`
	ShardingDb string `json:"sharding_db"`

	Debug bool `json:"debug"`

	HttpClientTimeout     string `json:"http_client_timeout"`
	HttpServerTimeout     string `json:"http_server_timeout"`
	HttpServerReadTimeout string `json:"http_server_read_timeout"`
	NotificationUrl       string `json:"notification_url"`

	ProcessIoUrl string `json:"process_io_url"`

	AuthEndpoint     string `json:"auth_endpoint"`
	AuthClientId     string `json:"auth_client_id" config:"secret"`
	AuthClientSecret string `json:"auth_client_secret" config:"secret"`

	ProcessDeploymentDoneTopic string `json:"process_deployment_done_topic"`
}

func LoadConfig

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

Jump to

Keyboard shortcuts

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