config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2026 License: Apache-2.0 Imports: 3 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 {
	DatabaseURL     string
	GRPCAddr        string
	HTTPAddr        string
	MetricsAddr     string
	LogLevel        string
	LogFormat       string
	ShutdownTimeout time.Duration
	DBMaxConns      int32
	DBMinConns      int32

	// Auth: entries name:scope[+scope]:sha256hex, inline or in a file.
	Tokens     string
	TokensFile string

	// ClickHouse
	ClickHouseEnabled       bool
	ClickHouseAddr          string
	ClickHouseDatabase      string
	ClickHouseUser          string
	ClickHousePassword      string
	ClickHouseBatchSize     int
	ClickHouseFlushInterval time.Duration

	// Sentry
	SentryDSN             string
	SentryEnvironment     string
	SentryRelease         string
	SentryTracing         bool
	SentryDebug           bool
	SentryWithBreadcrumbs bool
}

Config holds the application configuration

func Load

func Load() *Config

Load loads configuration from environment variables

Jump to

Keyboard shortcuts

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