Documentation ¶
Index ¶
- func RelayAudioHelper(c *gin.Context, relayMode int) *relaymodel.ErrorWithStatusCode
- func RelayErrorHandler(resp *http.Response) (ErrorWithStatusCode *model.ErrorWithStatusCode)
- func RelayImageHelper(c *gin.Context, relayMode int) *relaymodel.ErrorWithStatusCode
- func RelayTextHelper(c *gin.Context) *model.ErrorWithStatusCode
- type GeneralErrorResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RelayAudioHelper ¶
func RelayAudioHelper(c *gin.Context, relayMode int) *relaymodel.ErrorWithStatusCode
func RelayErrorHandler ¶
func RelayErrorHandler(resp *http.Response) (ErrorWithStatusCode *model.ErrorWithStatusCode)
func RelayImageHelper ¶
func RelayImageHelper(c *gin.Context, relayMode int) *relaymodel.ErrorWithStatusCode
func RelayTextHelper ¶
func RelayTextHelper(c *gin.Context) *model.ErrorWithStatusCode
Types ¶
type GeneralErrorResponse ¶
type GeneralErrorResponse struct { Error model.Error `json:"error"` Message string `json:"message"` Msg string `json:"msg"` Err string `json:"err"` ErrorMsg string `json:"error_msg"` Header struct { Message string `json:"message"` } `json:"header"` Response struct { Error struct { Message string `json:"message"` } `json:"error"` } `json:"response"` }
func (GeneralErrorResponse) ToMessage ¶
func (e GeneralErrorResponse) ToMessage() string
Click to show internal directories.
Click to hide internal directories.