config

package
v0.18.4 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConfigFile string

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"`
	Username        string `mapstructure:"username"`
	InitialPassword string `mapstructure:"initial_password"`
	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