config

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: GPL-3.0 Imports: 6 Imported by: 5

Documentation

Index

Constants

View Source
const (
	ConfigDebug                     string = "debug"
	ConfigKWGPathPrefix                    = "kwg-path-prefix"
	ConfigDataPath                         = "data-path"
	ConfigDefaultLexicon                   = "default-lexicon"
	ConfigDefaultLetterDistribution        = "default-letter-distribution"
	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 {
	viper.Viper
}

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) 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