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
	Login   auth.Config
}

func InitConfig

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

type GeneralConfig

type GeneralConfig struct {
	Debug  bool
	Host   string `yaml:"host" split_words:"true"`
	Port   string `yaml:"port" split_words:"true"`
	Web    string `yaml:"web" split_words:"true"`
	Secret string `yaml:"secret" split_words:"true"`
	Level  zapcore.Level
}

Jump to

Keyboard shortcuts

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