Documentation ¶
Index ¶
- 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitFights ¶
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.
Click to show internal directories.
Click to hide internal directories.