Documentation ¶
Index ¶
Constants ¶
View Source
const ( CollectionNameChannels = CollectionName("channels") CollectionNameUsers = CollectionName("users") )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CollectionName ¶
type CollectionName string
type Connection ¶
type Connection struct {
// contains filtered or unexported fields
}
func NewMongoConnection ¶
func NewMongoConnection() *Connection
func (*Connection) Collection ¶
func (conn *Connection) Collection(name CollectionName) *mongo.Collection
func (Connection) Disconnect ¶
func (conn Connection) Disconnect()
Click to show internal directories.
Click to hide internal directories.