config

package
v0.0.0-...-fb29bd8 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 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 APIConfig

type APIConfig struct {
	NoticeServiceAddr string
}

type Config

type Config struct {
	Log     LogConfig
	Core    CoreConfig
	HTTP    HTTPServerConfig
	API     APIConfig
	Storage StorageConfig
}

func Load

func Load() Config

type CoreConfig

type CoreConfig struct {
	ShutdownTimeout time.Duration
}

type HTTPServerConfig

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

type LogConfig

type LogConfig struct {
	Level    string
	Encoding string
}

type StorageConfig

type StorageConfig struct {
	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
JackTT - Gopher 🇻🇳