Documentation ¶
Index ¶
- type Mongo
- func (m *Mongo) Close()
- func (m *Mongo) CollectionIsExist(name string) (isExist bool, err error)
- func (m *Mongo) CollectionNames() (names []string, err error)
- func (m *Mongo) DatabaseNames() (names []string, err error)
- func (m *Mongo) DbNameIsExist(name string) (isExist bool, err error)
- func (m *Mongo) Exec(colName string, colFunc func(collection *mgo.Collection) error) error
- func (m *Mongo) SetDbName(dbName string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mongo ¶
type Mongo struct {
// contains filtered or unexported fields
}
func (*Mongo) CollectionIsExist ¶
func (*Mongo) CollectionNames ¶
func (*Mongo) DatabaseNames ¶
Click to show internal directories.
Click to hide internal directories.