mgoconfig

package module
v0.0.0-...-7f7ecd4 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2016 License: MIT Imports: 2 Imported by: 3

README

mgoconfig

MongoDB-backed configuration for Go programs

Build Status

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	Database string
	Key      string
	Session  *mgo.Session
}

Configuration is the struct holding the configuration keys and mongo session

func (*Configuration) Get

func (configuration *Configuration) Get(destination interface{}) error

Get serializes the key from the configuration table into the provided destination struct.

Jump to

Keyboard shortcuts

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