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: 5 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
}

func InitConfig

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

type GeneralConfig

type GeneralConfig struct {
	Debug     bool
	IP        string   `yaml:"ip" split_words:"true"`
	Port      string   `yaml:"port" split_words:"true"`
	Path      string   `yaml:"path" split_words:"true"`
	Endpoints []string `yaml:"endpoints"`
	Level     zapcore.Level
}

Jump to

Keyboard shortcuts

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