Documentation ¶
Index ¶
- func DeleteAll(collectionName string, c *gin.Context) (er error)
- func DeleteOne(collectionName string, c *gin.Context) (er error)
- func FetchById(collectionName string, c *gin.Context, ...) (uu interface{}, er error)
- func FetchOne(collectionName string, c *gin.Context, ...) (uu interface{}, er error)
- func InsertAll(collectionName string, dbHandler func(*mgo.Collection) (interface{}, error)) (uu interface{}, er error)
- func InsertOne(collectionName string, dbHandler func(*mgo.Collection) (interface{}, error)) (uu interface{}, er error)
- func ReplaceAll(collectionName string, dbHandler func(*mgo.Collection) (interface{}, error)) (uu interface{}, er error)
- func ReplaceOne(collectionName string, dbHandler func(*mgo.Collection) (interface{}, error)) (uu interface{}, er error)
- func Update(collectionName string, c *gin.Context, updatedValues map[string]interface{}, ...) (uu interface{}, er error)
- func UpdateOneById(collectionName string, c *gin.Context, updatedValues map[string]interface{}) (uu interface{}, er error)
- type ApiModel
- type ApiModels
- type Result
- type Results
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReplaceAll ¶
func ReplaceOne ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.