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