Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCollection ¶
func GetCollection(name string) *mongo.Collection
func GetUserCol ¶
func GetUserCol() *mongo.Collection
Types ¶
type Collection ¶
type Collection[T any] interface { GetOne(filter interface{}) *mongo.SingleResult GetList(filter interface{}) []T Create(data interface{}) *mongo.InsertOneResult Update(data interface{}, filter interface{}) *mongo.UpdateResult Delete(filter interface{}) *mongo.DeleteResult }
UNUSED
Click to show internal directories.
Click to hide internal directories.