db

package
v0.0.0-...-e497863 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2015 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Overview

Package db provides util functions to deal with Gandalf's database.

Index

Constants

View Source
const (
	DefaultDatabaseURL  = "127.0.0.1:27017"
	DefaultDatabaseName = "gandalf"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

type Storage struct {
	*storage.Storage
}

func Conn

func Conn() (*Storage, error)

func (*Storage) Key

func (s *Storage) Key() *storage.Collection

func (*Storage) Repository

func (s *Storage) Repository() *storage.Collection

Repository returns a reference to the "repository" collection in MongoDB.

func (*Storage) User

func (s *Storage) User() *storage.Collection

User returns a reference to the "user" collection in MongoDB.

Jump to

Keyboard shortcuts

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