Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
func NewRepository ¶
func NewRepository(dbName string) *Repository
func (*Repository) C ¶
func (this *Repository) C(name string) *mgo.Collection
func (*Repository) Close ¶
func (this *Repository) Close()
func (*Repository) CollectionNames ¶
func (this *Repository) CollectionNames() ([]string, error)
func (*Repository) Insert ¶
func (this *Repository) Insert(name string, docs ...interface{}) error
Click to show internal directories.
Click to hide internal directories.