Documentation ¶
Index ¶
- func DeleteAll(collectionName string, c *gin.Context) (er error)
- func DeleteAllWitArray(collectionName string, ids []string) (er error)
- func DeleteOne(collectionName string, c *gin.Context) (er error)
- func DeleteOneWithString(collectionName string, id string) (er error)
- func FetchById(collectionName string, c *gin.Context, ...) (uu interface{}, er error)
- func FetchByIdWithMap(collectionName string, c map[string]string, ...) (uu interface{}, er error)
- func FetchOne(collectionName string, c *gin.Context, ...) (uu interface{}, er error)
- func FetchOneWithMap(collectionName string, c map[string]string, ...) (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)
- func UpdateOneByIdString(collectionName string, id string, updatedValues map[string]interface{}) (uu interface{}, er error)
- func UpdateWithMap(collectionName string, c map[string]string, ...) (uu interface{}, er error)
- type ApiModel
- type ApiModels
- type Result
- type Results
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteAllWitArray ¶
func DeleteOneWithString ¶
func FetchByIdWithMap ¶
func FetchOneWithMap ¶
func ReplaceAll ¶
func ReplaceOne ¶
func UpdateOneById ¶
func UpdateOneByIdString ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.