config

package
v0.0.0-...-7ff2818 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2020 License: BSD-3-Clause Imports: 4 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 {
	Constants

	JwtAuth       *jwtauth.JWTAuth
	PluginConfigs map[string]*viper.Viper
}

func InitConfig

func InitConfig(configPath string, onlyEnvs ...bool) (*Config, error)

type Constants

type Constants struct {
	ListenAddr  string
	JwtSecret   string
	LogPath     string
	LogLevel    string
	PluginsPath string
}

type Plugin

type Plugin struct {
	Config *viper.Viper
}

Jump to

Keyboard shortcuts

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