config

package
v0.0.0-...-0dbdec9 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2018 License: MIT Imports: 5 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 {
	Constants
	Database *mgo.Database
}

func New

func New() (*Config, error)

NewConfig is used to generate a configuration instance which will be passed around the codebase

type Constants

type Constants struct {
	PORT  string
	Mongo struct {
		URL    string
		DBName string
	}
}

Jump to

Keyboard shortcuts

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