package
Version:
v0.0.0-...-9634a1a
Opens a new window with list of versions in this module.
Published: Feb 15, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
-
func BadRequestResponse(c *gin.Context, optStatus string, description string)
-
func ForwardMasterController(c *gin.Context, masterControllerName string, port int)
-
func HttpResponse(c *gin.Context, httpCode int, data interface{}, optStatus string, ...)
-
func InternalErrorResponse(c *gin.Context, data interface{}, optStatus string, description string)
-
func JsonResponse(c *gin.Context, data interface{}, err error)
-
func ServiceUnavailableResponse(c *gin.Context, data interface{}, optStatus string, description string)
-
type Response
type Response struct {
OptStatus string `json:"OPT_STATUS"`
Description string `json:"DESCRIPTION"`
Data interface{} `json:"DATA"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.