Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Collection ¶
type Collection struct { Database *Database *mongo.Collection }
type Config ¶
type Config struct { Global map[string]*DatabaseConfig Platforms map[string]map[string]*DatabaseConfig }
type Database ¶
type Database struct { *DatabaseConfig Client *mongo.Client Database *mongo.Database Collection sync.Map }
func (*Database) GetCollection ¶
func (d *Database) GetCollection(name string) (*Collection, error)
type DatabaseConfig ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func (*Manager) GetCollection ¶
func (m *Manager) GetCollection(key, database, collection string) (*Collection, error)
func (*Manager) GetDatabase ¶
Click to show internal directories.
Click to hide internal directories.