global

package
v0.0.0-...-09e84be Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Api       apiclient.API
	Logger    *zerolog.Logger
	Db        *pgsql.DB
	Routes    *apiroutecache.MongoSession
	Mgosesion *mango.MongoSession
	JWTval    *jwtauth.Validator
	Cache     *redicache.RedisSession
	Config    appConfig
	//IsProduction is flag to run server in production mode
	IsProduction bool

	//TestEnv tell if running in Test mode for unit testing
	//Set environment variable TESTENV=1 to set it
	TestEnv bool

	//MyURL is this sever's own URL e.g. https://mshopapi.mahendras.org.org etc
	MyURL string
	MyIP  net.IP
)

Functions

func NewConfig

func NewConfig() appConfig

NewConfig creates new blank config

Types

This section is empty.

Jump to

Keyboard shortcuts

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