config

package
v0.0.0-...-334dbe7 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConnection

func GetConnection() *sql.DB

GetConnection ...

Types

type Config

type Config struct {
	GRPCPort   uint   `mapstructure:"grpc_port"`
	HTTPPort   uint   `mapstructure:"http_port"`
	DBName     string `mapstructure:"db_name"`
	DBPort     uint   `mapstructure:"db_port"`
	DBPassword string `mapstructure:"db_password"`
	DBUser     string `mapstructure:"db_user"`
	DBServer   string `mapstructure:"db_server"`
	CertPem    string `mapstructure:"cert_pem"`
	CertKey    string `mapstructure:"cert_key"`
}

Config provide global variables

func LoadVariables

func LoadVariables() Config

LoadVariables file configuration

Jump to

Keyboard shortcuts

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