config

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load()

Types

type APIConfig

type APIConfig struct {
	ListenAddr string
	ListenPort int
	APIKeys    []string
}

type Config

type Config struct {
	DB   DBConfig
	API  APIConfig
	Util UtilConfig
}
var Current *Config

type DBConfig

type DBConfig struct {
	LicenseKey         string
	AutoUpdate         bool
	AutoUpdateInterval time.Duration
}

type UtilConfig

type UtilConfig struct {
	AssetDirPath string
	IsDev        bool
}

Jump to

Keyboard shortcuts

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