config

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2025 License: GPL-3.0 Imports: 8 Imported by: 6

Documentation

Index

Constants

View Source
const (
	ConfigDebug                     string = "debug"
	ConfigKWGPathPrefix                    = "kwg-path-prefix"
	ConfigDataPath                         = "data-path"
	ConfigDefaultLexicon                   = "default-lexicon"
	ConfigDefaultLetterDistribution        = "default-letter-distribution"
	ConfigDefaultBoardLayout               = "default-board-layout"
	ConfigTtableMemFraction                = "ttable-mem-fraction"
	ConfigLambdaFunctionName               = "lambda-function-name"
	ConfigNatsURL                          = "nats-url"
	ConfigWolgesAwsmUrl                    = "wolges-awsm-url"
	ConfigCPUProfile                       = "cpu-profile"
	ConfigMEMProfile                       = "mem-profile"
)

Known config names

Variables

This section is empty.

Functions

func FindBasePath added in v0.4.5

func FindBasePath(path string) string

Types

type Config

type Config struct {
	sync.Mutex

	viper.Viper
	// contains filtered or unexported fields
}

func DefaultConfig added in v0.4.5

func DefaultConfig() *Config

func (*Config) AdjustRelativePaths added in v0.4.5

func (c *Config) AdjustRelativePaths(basepath string)

func (*Config) Load

func (c *Config) Load(args []string) error

func (*Config) WGLConfig added in v0.9.3

func (c *Config) WGLConfig() *wglconfig.Config

the WGLConfig is a config used for the word-golib library. It is a reduced version of this overall config. We calculate it here to avoid passing this entire config to that library (and causing a circular import as well). This sub-config is not meant to change after we first start this program.

func (*Config) Write added in v0.8.8

func (c *Config) Write() error

Jump to

Keyboard shortcuts

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