Documentation ¶
Index ¶
- type BaseHTTPHandler
- func (h *BaseHTTPHandler) ResponseCSV(c *gin.Context, statusCode int, fileName string, data []byte)
- func (h *BaseHTTPHandler) ResponseStatusBadRequest(c *gin.Context, messages interface{})
- func (h *BaseHTTPHandler) ResponseStatusForbidden(c *gin.Context, messages interface{})
- func (h *BaseHTTPHandler) ResponseStatusInternalServerError(c *gin.Context, messages interface{}, err error)
- func (h *BaseHTTPHandler) ResponseStatusNotFound(c *gin.Context, messages interface{})
- func (h *BaseHTTPHandler) ResponseZIP(c *gin.Context, statusCode int, fileName string, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseHTTPHandler ¶
BaseHTTPHandler base handler struct.
func (*BaseHTTPHandler) ResponseCSV ¶
ResponseCSV responses csv data.
func (*BaseHTTPHandler) ResponseStatusBadRequest ¶
func (h *BaseHTTPHandler) ResponseStatusBadRequest(c *gin.Context, messages interface{})
ResponseStatusBadRequest returns 400 error.
func (*BaseHTTPHandler) ResponseStatusForbidden ¶
func (h *BaseHTTPHandler) ResponseStatusForbidden(c *gin.Context, messages interface{})
ResponseStatusForbidden returns 403 error.
func (*BaseHTTPHandler) ResponseStatusInternalServerError ¶
func (h *BaseHTTPHandler) ResponseStatusInternalServerError(c *gin.Context, messages interface{}, err error)
ResponseStatusInternalServerError returns 500 error.
func (*BaseHTTPHandler) ResponseStatusNotFound ¶
func (h *BaseHTTPHandler) ResponseStatusNotFound(c *gin.Context, messages interface{})
ResponseStatusNotFound returns 404 error.
Click to show internal directories.
Click to hide internal directories.