globals

package
v0.0.0-...-fd79670 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	APPLICATIONNAME    = "minilink"
	APPLICATIONVERSION = "0.1-dev"
)

Variables

View Source
var Config *config.Config

Config stores the application configuration

View Source
var DSClient *datastore.Client

DSClient is a global instance of a datastore client

Logger is a global logger used throughout the application

Functions

func InitConfig

func InitConfig()

InitConfig should be the first initializer that should be called. It reads values from the evironment and builds the configuration settings for the application.

func InitDSClient

func InitDSClient(ctx context.Context, projectName string)

InitDSClient initializes the datastore client

func InitLogger

func InitLogger(application, env string)

InitLogger creates a new default logger for the application

Types

This section is empty.

Jump to

Keyboard shortcuts

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