Documentation
¶
Index ¶
- func GetClientIP(ctx context.Context, c *app.RequestContext) net.IP
- func ResponseBadRequest(c *app.RequestContext)
- func ResponseErr(c *app.RequestContext, err error)
- func ResponseErrCustom(c *app.RequestContext, code int, err error)
- func ResponseOK(c *app.RequestContext, data any)
- func ResponseUnauthorized(c *app.RequestContext)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetClientIP ¶
func ResponseBadRequest ¶
func ResponseBadRequest(c *app.RequestContext)
func ResponseErr ¶
func ResponseErr(c *app.RequestContext, err error)
func ResponseErrCustom ¶
func ResponseErrCustom(c *app.RequestContext, code int, err error)
func ResponseOK ¶
func ResponseOK(c *app.RequestContext, data any)
func ResponseUnauthorized ¶
func ResponseUnauthorized(c *app.RequestContext)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.