db

package
v0.0.0-...-2271788 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IndexDatabaseName            = "index"
	IndexCampaignsCollectionName = "campaigns"
	WorldsCollectionName         = "worlds"
)

Variables

This section is empty.

Functions

func Campaign

func Campaign(client *mongo.Client, id string) *mongo.Database

func Campaigns

func Campaigns(client *mongo.Client) *mongo.Collection

func Connect

func Connect() (*mongo.Client, context.Context, error)

func CreateCampaign

func CreateCampaign(client *mongo.Client, name string) (string, error)

func Index

func Index(client *mongo.Client) *mongo.Database

Types

This section is empty.

Jump to

Keyboard shortcuts

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