config

package
v0.6.5 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BUILD_COMMIT  string               // The commit hash of the build, useful for tracking specific builds in version control.
	BUILD_VERSION string = "dev"       // The version of the build, defaults to the value in DEFAULT_VERSION.
	APP_NAME      string = "TheTipTop" // The name of the application, defaults to the value in DEFAULT_APP_NAME.
	HOSTNAME      string = "localhost" // The hostname of the server, used for generating TLS certificates.

	DEFAULT_DB_NAME string = "default"
	DEFAULT_CONFIG  string = "s3://config.kodmain/config.yml"

	PORT_HTTP  string = ":80"
	PORT_HTTPS string = ":443"
)

Functions

func Get added in v0.6.0

func Get(key string) interface{}

func Load added in v0.6.0

func Load(path string) error

func Reset added in v0.6.0

func Reset()

Types

type Config added in v0.6.0

type Config struct {
	Mail      *mail.Service       `yaml:"mail"`
	Databases *database.Databases `yaml:"databases"`
	JWT       *jwt.JWT            `yaml:"jwt"`
}

func (*Config) Initialize added in v0.6.0

func (cfg *Config) Initialize() error

Jump to

Keyboard shortcuts

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