utils

package
v0.0.0-...-1a7f21c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 17, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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

func ApplySetElementStringSameTarget(setElement *bson.D, updateMap bson.M, target string) bool

ApplySetElementStringSameTarget function to create database set field for same body key and target

func CreateBadRequestJSONMessage

func CreateBadRequestJSONMessage(message string) gin.H

CreateBadRequestJSONMessage generates bad request response object

func CreateForbbidnJSONMessage

func CreateForbbidnJSONMessage(message string) gin.H

CreateForbbidnJSONMessage generates forbbiden response object

func CreateInternalServerErrorJSONMessage

func CreateInternalServerErrorJSONMessage() gin.H

CreateInternalServerErrorJSONMessage generates server error response object

func CreateNotFoundJSONMessage

func CreateNotFoundJSONMessage(message string) gin.H

CreateNotFoundJSONMessage generates not found response object

func CreateSuccessJSONMessage

func CreateSuccessJSONMessage(data gin.H) gin.H

CreateSuccessJSONMessage generates success response object

func CreateUnauthorizedJSONMessage

func CreateUnauthorizedJSONMessage(message string, isExpired bool) gin.H

CreateUnauthorizedJSONMessage generates unauthorized response object

func RequestToRiotServer

func RequestToRiotServer(endpoint string, params bson.M) (bson.M, int)

RequestToRiotServer function request to riot server

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL