Versions in this module Expand all Collapse all v1 v1.0.0 Dec 24, 2024 Changes in this version + func Close(m *Manager) + type Collection struct + Database *Database + type Config struct + Global map[string]*DatabaseConfig + Platforms map[string]map[string]*DatabaseConfig + type Database struct + Client *mongo.Client + Collection sync.Map + Database *mongo.Database + func (d *Database) Connect() error + func (d *Database) GetCollection(name string) (*Collection, error) + type DatabaseConfig struct + Database string + HostName string + HostPort int32 + Options string + Password string + Username string + type Manager struct + func NewManager(conf *Config) *Manager + func (m *Manager) GetCollection(key, database, collection string) (*Collection, error) + func (m *Manager) GetConfig() *Config + func (m *Manager) GetDatabase(key, database string) (*Database, error) + func (m *Manager) Restart(conf *Config)