conf

package
v0.0.0-...-24d7b7f Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2017 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectDB

func ConnectDB(host string, env *viper.Viper) *sqlx.DB

ConnectDB create database connection

func NewConfig

func NewConfig(env string) *viper.Viper

NewConfig set environment values

Types

type CaseOne

type CaseOne struct {
	Env      *viper.Viper
	DBReader *sqlx.DB
	DBWriter *sqlx.DB
}

CaseOne default app dependency objects

func NewCaseOne

func NewCaseOne(mode string) *CaseOne

NewCaseOne create default configuration object

Jump to

Keyboard shortcuts

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