Documentation ¶
Index ¶
- func Gin(handler any) gin.HandlerFunc
- func Respond(code, status int, message string, data any, abort bool, ctx any)
- type GinModel
- func (m GinModel) ErrorState(ctx any, err *response.ErrorState)
- func (m GinModel) GetErrorsArray(message string, data any) []response.ErrorResponse
- func (m GinModel) HandleErrorState(err error, status int, message string, data any, ctx any)
- func (m GinModel) Respond(code, status int, message string, data any, abort bool, ctx any)
- func (m GinModel) RespondWithReceipt(code, status int, message string, data any, printData response.Receipt, ...)
- type GinParser
- func (c GinParser) CheckUrlParam(name string) (string, bool)
- func (c GinParser) GetArgs(args ...any) map[string]string
- func (c GinParser) GetBody(target any) error
- func (c GinParser) GetHeader(target any) error
- func (c GinParser) GetHeaderValue(name string) string
- func (c GinParser) GetHttpHeader() http.Header
- func (c GinParser) GetLocal(name string) any
- func (c GinParser) GetLocalString(name string) string
- func (c GinParser) GetMethod() string
- func (c GinParser) GetPath() string
- func (c GinParser) GetRawUrlQuery() string
- func (c GinParser) GetUrlParam(name string) string
- func (c GinParser) GetUrlParams() map[string]string
- func (c GinParser) GetUrlQuery(target any) error
- func (c GinParser) ParseCommand(command, title string, request libQuery.RecordData, ...) string
- func (c GinParser) SetLocal(name string, value any)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Gin ¶
func Gin(handler any) gin.HandlerFunc
Types ¶
type GinModel ¶
type GinModel struct { MessageDesc map[string]string ErrorDesc map[string]string RequestInterface libRequest.RequestInterface }
func (GinModel) ErrorState ¶ added in v0.1.3
func (m GinModel) ErrorState(ctx any, err *response.ErrorState)
func (GinModel) GetErrorsArray ¶
func (m GinModel) GetErrorsArray(message string, data any) []response.ErrorResponse
func (GinModel) HandleErrorState ¶
type GinParser ¶
func InitContext ¶
func (GinParser) GetHeaderValue ¶
func (GinParser) GetHttpHeader ¶
func (GinParser) GetLocalString ¶
func (GinParser) GetRawUrlQuery ¶
func (GinParser) GetUrlParam ¶
func (GinParser) GetUrlParams ¶
func (GinParser) GetUrlQuery ¶
func (GinParser) ParseCommand ¶
func (c GinParser) ParseCommand(command, title string, request libQuery.RecordData, parser libQuery.FieldParser) string
Click to show internal directories.
Click to hide internal directories.