config

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EnvAddr                 = envPrefix + "ADDR"
	EnvPort                 = envPrefix + "PORT"
	EnvEncryptedFilesFolder = envPrefix + "ENCRYPTED_FILES_FOLDER"
	EnvLogFile              = envPrefix + "LOG_FILE"
	EnvLogLevelDebug        = envPrefix + "LOG_LEVEL_DEBUG"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	AddrPort netip.AddrPort

	TLSCertFile string
	TLSKeyFile  string

	EnvEncryptedFilesFolder string

	LogFile       string
	LogLevelDebug slog.Leveler
}

func NewConfig

func NewConfig(
	getEnv func(string) string,
) (*Config, map[string]string)

Jump to

Keyboard shortcuts

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