config

package
v0.0.0-...-9db48c8 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2025 License: MIT Imports: 2 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 {
	Log     LogConfig
	Core    CoreConfig
	HTTP    HTTPServerConfig
	Storage StorageConfig
}

func Load

func Load() Config

type CoreConfig

type CoreConfig struct {
	ShutdownTimeout time.Duration
}

type HTTPServerConfig

type HTTPServerConfig struct {
	Port        string
	Timeout     time.Duration
	IdleTimeout time.Duration
}

type LogConfig

type LogConfig struct {
	Level    string
	Encoding string
}

type StorageConfig

type StorageConfig struct {
	Type     string
	User     string
	Password string
	Host     string
	Port     string
	DBName   string
	SSLMode  string
}

Jump to

Keyboard shortcuts

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