config

package
v0.0.0-...-44471cb Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2019 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConfigName

func GetConfigName() string

Types

type Configuration

type Configuration struct {
	Database Database
	Server   Server
}

func GetInstance

func GetInstance() *Configuration

func NewViperConfig

func NewViperConfig() *Configuration

type Database

type Database struct {
	URL      string
	Name     string
	User     string
	Password string
	Dialect  string
	MongoURL string
}

type Server

type Server struct {
	Host string
	Port int
}

Jump to

Keyboard shortcuts

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