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 ¶
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.
Click to show internal directories.
Click to hide internal directories.