app

package
Version: v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2017 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigureAll

func ConfigureAll(cfg map[string]interface{}) error

func Get

func Get(names ...string) (interface{}, error)

func GetContainer

func GetContainer(name string) (*container.Container, error)

func GetMongo

func GetMongo(name string) (*mgo.Database, error)

func GetMySQL

func GetMySQL(name string) (*mysql.DB, error)

func GetTemplate

func GetTemplate() *template.Template

func Register

func Register(name string, creator container.Creator)

func UseModel

func UseModel(name string, subName string, write bool) interface{}

Types

type Model

type Model interface {
	ConnName() string
}

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL