Versions in this module Expand all Collapse all v0 v0.0.1 Jun 18, 2023 Changes in this version + func InitFights(coll *mongo.Collection, fight model.Fight) (primitive.ObjectID, error) + func InitUser(coll *mongo.Collection, user model.User) (primitive.ObjectID, error) + func PatchUser(coll *mongo.Collection, id primitive.ObjectID, patch bson.M) error + func PullFight(coll *mongo.Collection, id primitive.ObjectID) (model.Fight, error) + func PullUser(coll *mongo.Collection, id primitive.ObjectID) (model.User, error) + func PushFight(coll *mongo.Collection, fight model.Fight) (model.Fight, error) + func PushUser(coll *mongo.Collection, user model.User) (model.User, error) + func RemoveFight(coll *mongo.Collection, id primitive.ObjectID) error + func RemoveUser(coll *mongo.Collection, id primitive.ObjectID) error