conf

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Config struct {
	CertPath       string `mapstructure:"cert_path"`
	KeyPath        string `mapstructure:"key_path"`
	ClientCertPath string `mapstructure:"client_cert_path"`
	GRPCPort       string `mapstructure:"grpc_port"`
	GatewayPort    string `mapstructure:"gateway_port"`
	JWTKey         string `mapstructure:"jwt_key"`
	HashKey        string `mapstructure:"hash_key"`
	BlockKey       string `mapstructure:"block_key"`

	DBHost string `mapstructure:"db_host"`
	DBName string `mapstructure:"db_name"`
	DBUser string `mapstructure:"db_user"`
	DBPass string `mapstructure:"db_pass"`

	LDAPHost     string `mapstructure:"ldap_host"`
	LDAPBindDN   string `mapstructure:"ldap_bind_dn"`
	LDAPBindPass string `mapstructure:"ldap_bind_pass"`
	LDAPBaseDN   string `mapstructure:"ldap_base_dn"`
}

Config is a configuration.

Functions

func Load added in v1.1.1

func Load(confName string) error

Load parses the config from file or from ENV variables s into a Config.

Types

This section is empty.

Jump to

Keyboard shortcuts

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