mongo

package
v0.0.0-...-ce734fa Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 20, 2022 License: AGPL-3.0 Imports: 7 Imported by: 0

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()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL