config

package
v0.0.22 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Global

type Global struct {
	Port        string
	BaseURL     string
	DB          *gorm.DB
	Environment string
	// contains filtered or unexported fields
}

Global config required for application

func Get

func Get() (gc Global, err error)

Get global config after it's been setup

func New

func New() (gc Global, err error)

New global config, only call this once from main

Jump to

Keyboard shortcuts

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