mgoconf

package
v0.0.0-...-8375e82 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2016 License: Apache-2.0 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 {
	// Info for dialing
	Conn *mgo.DialInfo

	// Safety Characteristics
	Safety *mgo.Safe
}

func New

func New() *Config

func Read

func Read(fn string) (*Config, error)

func (*Config) Connect

func (cfg *Config) Connect() (*mgo.Session, error)

Jump to

Keyboard shortcuts

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