linker

package
v0.0.0-...-c354ab8 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2014 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Links `json:"connections"`
}
type Link struct {
	Spec    string `json:"spec"`
	DbName  string `json:"db_name"`
	Default bool   `json:"default"`
	// contains filtered or unexported fields
}

func Get

func Get(args ...string) Link

func (Link) MongoDB

func (this Link) MongoDB(args ...string) *mgo.Database

func (Link) MongoSession

func (this Link) MongoSession() *mgo.Session

func (Link) Session

func (this Link) Session() interface{}
type Links map[string]Link

Jump to

Keyboard shortcuts

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