controller

package
v0.6.5 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2024 License: MIT Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RelayAudioHelper

func RelayAudioHelper(c *gin.Context, relayMode int) *relaymodel.ErrorWithStatusCode

func RelayErrorHandler added in v0.6.5

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 added in v0.6.5

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 added in v0.6.5

func (e GeneralErrorResponse) ToMessage() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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