config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2020 License: MIT Imports: 9 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 {
	AppName             string
	EnvName             string
	BindAddress         net.IP
	BindPort            uint
	GracefulTimeout     uint
	LogFile             string
	LogFormat           string
	LogLevel            string
	LogRequestsDisabled bool
	CORS                middleware.CORSConfig
	BaseUrl             string
	DatabaseType        string
	MongoDatabase       MongoDatabase
}

Config holds all configuration for our program

func NewConfig

func NewConfig() *Config

NewConfig creates a Config instance

func (*Config) BindFlags

func (cnf *Config) BindFlags()

BindFlags normalizes and parses the command line flags

type MongoDatabase

type MongoDatabase struct {
	Username string
	Password string
	Timeout  time.Duration
	Uri      string
}

Jump to

Keyboard shortcuts

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