config

package
v0.0.0-...-552fd6e Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MessageInvalidVolume        = "volume range [0; 2]"
	MessageFailedLoadConfigFile = "Error loading .env file"
	MessageNotSupportedLanguage = "Not supported Language."
)
View Source
const (
	EnvVolume            = "VOLUME"
	EnvUserIgnore        = "USER_IGNORE"
	EnvLangDetectEnabled = "LANG_DETECT_ENABLED"
	EnvTwitchChannel     = "TWITCH_CHANNEL"
	EnvRestAddress       = "SERVE_REST_ADDRESS"
	EnvLanguage          = "LANGUAGE"
	EnvModeration        = "MODERATION"
	EnvIgnoredWords      = "IGNORE"
	EnvGreeting          = "GREETING"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Volume              float64
	LangDetectorEnabled bool
	WebViewAddress      string
	StaticApiAddress    string
	RestAddress         string
	Language            string
	ModerationWordPairs string
	IgnoreWords         string
	GreetingText        string
	ChannelsList        []string
	UserBanList         []string
}

func NewConfig

func NewConfig() *Config

func (*Config) Parse

func (c *Config) Parse()

Jump to

Keyboard shortcuts

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