mongodb

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Conn

func Conn() *mongo.Client

func Connect

func Connect()

Types

type MongoBase

type MongoBase struct {
	// contains filtered or unexported fields
}

func Builder

func Builder() *MongoBase

func (*MongoBase) CreatePlayerStateWithWorkers

func (mb *MongoBase) CreatePlayerStateWithWorkers(player interface{})

func (*MongoBase) CreateUserWithWorkers

func (mb *MongoBase) CreateUserWithWorkers(user interface{})

func (*MongoBase) CreateVehicleStateWithWorkers

func (mb *MongoBase) CreateVehicleStateWithWorkers(vehicle interface{})

func (*MongoBase) GetPlayerState

func (mb *MongoBase) GetPlayerState(player, filter interface{}, opts ...*options.FindOneOptions) error

func (*MongoBase) GetVehicleState

func (mb *MongoBase) GetVehicleState(vehicle, filter interface{}, opts ...*options.FindOneOptions) error

func (*MongoBase) UseCollection

func (mb *MongoBase) UseCollection(collection string) *MongoBase

func (*MongoBase) UseDatabase

func (mb *MongoBase) UseDatabase(db string) *MongoBase

Jump to

Keyboard shortcuts

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