config

package
v0.0.0-...-e954c25 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2017 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Config package contains different typed parameters accessible by .Get(), as well as some structures like cache keys generator. Config file can be load by either set environment variable "APP_CONFIG" with full path to .yml config file or by putting config.yml to the app working directory.

Usage:

`config.Get().SomeParam`

Index

Constants

View Source
const (
	ExampleCreatedMsg = "example.created"
	ExampleUpdateMsg  = "example.update"
	ExampleDeleteMsg  = "example.delete"
)

Centralized storage for PubSub messages

Variables

View Source
var (
	Filename = "config.yml"
	ENVName  = "APP_CONFIG"
)
View Source
var CacheKeys = cacheKeys{}

Centralized storage for cache keys

View Source
var Version = "0.0.1"

Functions

func Get

func Get() *cfg

func Reset

func Reset()

After Reset(), config will be reloaded

Types

This section is empty.

Jump to

Keyboard shortcuts

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