configuration

package
v1.0.14 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2026 License: Apache-2.0 Imports: 12 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"`

	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"`
	IncidentApiUrl string `json:"incident_api_url"`

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

	AccessLogTrimFormat string `json:"access_log_trim_format"`

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

func LoadConfig

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

func (*Config) GetLogger added in v1.0.8

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

Jump to

Keyboard shortcuts

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