config

package
v0.0.0-...-b7df9c0 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package config based on method loading github.com/gobuffalo/pop of configs. But here we can save config in ConnectionDetails store and free to use like we need.

Index

Constants

This section is empty.

Variables

View Source
var ConfigName = "database.yml"

ConfigName is the name of the YAML databases config file

View Source
var ConnectionDetails = map[string]*pop.ConnectionDetails{}

ConnectionDetails all required information for connection

Functions

func LoadConfigFile

func LoadConfigFile() error

LoadConfigFile loads a POP config file from the configured lookup paths

func LoadFrom

func LoadFrom(r io.Reader) error

LoadFrom reads a configuration from the reader and sets up the connections

Types

This section is empty.

Jump to

Keyboard shortcuts

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