Documentation ¶
Overview ¶
Package controller contains all the controllers of the application
Index ¶
- func APIStatus(c *gin.Context)
- func AccessResource(c *gin.Context)
- func AddHobby(c *gin.Context)
- func CreatePost(c *gin.Context)
- func CreateUser(c *gin.Context)
- func DeletePost(c *gin.Context)
- func GetHobbies(c *gin.Context)
- func GetPost(c *gin.Context)
- func GetPosts(c *gin.Context)
- func GetUser(c *gin.Context)
- func GetUsers(c *gin.Context)
- func MongoCreateOne(c *gin.Context)
- func MongoDeleteByID(c *gin.Context)
- func MongoDeleteFieldByID(c *gin.Context)
- func MongoGetAll(c *gin.Context)
- func MongoGetByFilter(c *gin.Context)
- func MongoGetByID(c *gin.Context)
- func MongoUpdateByID(c *gin.Context)
- func QueryString(c *gin.Context)
- func RedisCreate(c *gin.Context)
- func RedisCreateHash(c *gin.Context)
- func RedisDelete(c *gin.Context)
- func RedisDeleteHash(c *gin.Context)
- func RedisRead(c *gin.Context)
- func RedisReadHash(c *gin.Context)
- func UpdatePost(c *gin.Context)
- func UpdateUser(c *gin.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AccessResource ¶
AccessResource - can be accessed by basic auth
func MongoDeleteByID ¶
MongoDeleteByID - delete one document by ID
func MongoDeleteFieldByID ¶
MongoDeleteFieldByID - delete existing field(s) from a document
func MongoGetByFilter ¶
MongoGetByFilter - find documents using filter
func MongoUpdateByID ¶
MongoUpdateByID - update a document edit existing fields add new fields do not remove any existing field
func QueryString ¶ added in v1.6.9
QueryString - basic implementation
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.