config

package
v0.15.3 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AppName = "dwebble"
View Source
var Commit = "no-commit"
View Source
var ConfigFile string
View Source
var Version = "no-version"

Functions

func InitConfig

func InitConfig()

Types

type Config

type Config struct {
	ListenAddr string `mapstructure:"listen_addr"`
	DataDir    string `mapstructure:"data_dir"`
	LibraryDir string `mapstructure:"library_dir"`
	JwtSecret  string `mapstructure:"jwt_secret"`
}
var LoadedConfig Config

func (*Config) WorkDir

func (c *Config) WorkDir() types.WorkDir

Jump to

Keyboard shortcuts

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