config

package
v1.0.32 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2020 License: MIT Imports: 2 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 {
	Database    Database `json:"-"`
	ListenPort  int      `mapstructure:"listen_port" yaml:"listen_port" json:"-"`
	Timeout     int      `json:"-"`
	Version     string   `json:"version"`
	Environment string   `json:"-"`
}

func Load

func Load(version string, cfgFile string) *Config

func (Config) IsProduction

func (c Config) IsProduction() bool

type Database

type Database struct {
	Driver   string
	Name     string
	Username string
	Password string
	Host     string
	Port     string
	Log      bool
}

Jump to

Keyboard shortcuts

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