userconfig

package
v0.1.39 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	sync.Mutex
	Servers map[string]*config.Config
}

Config actual config for the services

var (
	Cfg *Config
)

Cfg variable holding the config object

type UserConfig

type UserConfig struct {
	ServerDirectories []string `yaml:"serverDirectories"`
}

UserConfig user config pointing at a list of globs to server directories

func (*UserConfig) Load

func (uc *UserConfig) Load(globalCfg *config.GlobalConfig, cfgs *Config) error

Load load the configs into a Config object

Jump to

Keyboard shortcuts

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