config

package
v0.0.0-...-df6cefe Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitConfig

func InitConfig(cfgFile string)

InitConfig - initialize configuration

Types

type Configuration

type Configuration struct {
	Server   ServerConfiguration
	Database DatabaseConfiguration
}

func GetConfig

func GetConfig() *Configuration

GetConfig helps you to get configuration data

type DatabaseConfiguration

type DatabaseConfiguration struct {
	Driver       string
	Dbname       string
	Username     string
	Password     string
	Host         string
	Port         string
	MaxLifetime  int
	MaxOpenConns int
	MaxIdleConns int
}

DatabaseConfiguration -

type ServerConfiguration

type ServerConfiguration struct {
	Port   string
	Secret string
	Mode   string
	Schema string
}

ServerConfiguration -

Jump to

Keyboard shortcuts

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