rmongo

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitFights

func InitFights(coll *mongo.Collection, fight model.Fight) (primitive.ObjectID, error)

func InitUser

func InitUser(coll *mongo.Collection, user model.User) (primitive.ObjectID, error)

func PatchUser

func PatchUser(coll *mongo.Collection, id primitive.ObjectID, patch bson.M) error

func PullFight

func PullFight(coll *mongo.Collection, id primitive.ObjectID) (model.Fight, error)

func PullUser

func PullUser(coll *mongo.Collection, id primitive.ObjectID) (model.User, error)

func PushFight

func PushFight(coll *mongo.Collection, fight model.Fight) (model.Fight, error)

func PushUser

func PushUser(coll *mongo.Collection, user model.User) (model.User, error)

func RemoveFight

func RemoveFight(coll *mongo.Collection, id primitive.ObjectID) error

func RemoveUser

func RemoveUser(coll *mongo.Collection, id primitive.ObjectID) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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