config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DB_URL string // Database URL.

	SERVER_ADDR string // Server address.

	FILES_DIR string // Directory where the images would be saved.

	CORS_ALLOW_ORIGIN string // CORS Allow-Origin value.

	LOGGING_FILE string // Log file path.
)

Functions

func LoadConfig

func LoadConfig(configPath string) error

LoadConfig loads config from file and environment variables.

func Validate

func Validate() error

Validate validates the config values.

Types

This section is empty.

Jump to

Keyboard shortcuts

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