Documentation ¶
Index ¶
- func ApplySetElementString(setElement *bson.D, updateMap bson.M, updateMapTarget string, dbTarget string) bool
- func ApplySetElementStringSameTarget(setElement *bson.D, updateMap bson.M, target string) bool
- func CreateBadRequestJSONMessage(message string) gin.H
- func CreateForbbidnJSONMessage(message string) gin.H
- func CreateInternalServerErrorJSONMessage() gin.H
- func CreateNotFoundJSONMessage(message string) gin.H
- func CreateSuccessJSONMessage(data gin.H) gin.H
- func CreateUnauthorizedJSONMessage(message string, isExpired bool) gin.H
- func RequestToRiotServer(endpoint string, params bson.M) (bson.M, int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplySetElementString ¶
func ApplySetElementString(setElement *bson.D, updateMap bson.M, updateMapTarget string, dbTarget string) bool
ApplySetElementString function to create database set field for different body key and target
func ApplySetElementStringSameTarget ¶
ApplySetElementStringSameTarget function to create database set field for same body key and target
func CreateBadRequestJSONMessage ¶
CreateBadRequestJSONMessage generates bad request response object
func CreateForbbidnJSONMessage ¶
CreateForbbidnJSONMessage generates forbbiden response object
func CreateInternalServerErrorJSONMessage ¶
CreateInternalServerErrorJSONMessage generates server error response object
func CreateNotFoundJSONMessage ¶
CreateNotFoundJSONMessage generates not found response object
func CreateSuccessJSONMessage ¶
CreateSuccessJSONMessage generates success response object
func CreateUnauthorizedJSONMessage ¶
CreateUnauthorizedJSONMessage generates unauthorized response object
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.