config

package
v0.0.0-...-2e53e79 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2023 License: Apache-2.0 Imports: 6 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 {
	General GeneralConfig
	Discord discord.Config
}

func InitConfig

func InitConfig(configPathEnv, envPrefix string) (Config, error)

type GeneralConfig

type GeneralConfig struct {
	Debug      bool
	Port       string `yaml:"port" split_words:"true"`
	Secret     string
	StateTicks int `yaml:"state_ticks" split_words:"true"`
	Level      zapcore.Level
}

Jump to

Keyboard shortcuts

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