Documentation
¶
Index ¶
- func ClearCookie(ctx *fasthttp.RequestCtx, name string)
- func DummyResponseHandler(ctx *fasthttp.RequestCtx)
- func ErrorJSON(ctx *fasthttp.RequestCtx, status int) error
- func ErrorResponse(ctx *fasthttp.RequestCtx, status int)
- func NewCookie(ctx *fasthttp.RequestCtx, cookie *Cookie) *fasthttp.Cookie
- func SetRootCookie(ctx *fasthttp.RequestCtx, name, value string, ttl time.Duration)
- func SuccessJSON(ctx *fasthttp.RequestCtx, status int, data interface{}, count int, offset int) error
- type Cookie
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearCookie ¶
func ClearCookie(ctx *fasthttp.RequestCtx, name string)
ClearCookie removes a cookie from client
func DummyResponseHandler ¶
func DummyResponseHandler(ctx *fasthttp.RequestCtx)
func ErrorResponse ¶
func ErrorResponse(ctx *fasthttp.RequestCtx, status int)
ErrorResponse writes to ResponseWriter error with a corresponding template or serialized payload
func NewCookie ¶
func NewCookie(ctx *fasthttp.RequestCtx, cookie *Cookie) *fasthttp.Cookie
NewCookie builds a cookie instance
func SetRootCookie ¶
func SetRootCookie(ctx *fasthttp.RequestCtx, name, value string, ttl time.Duration)
SetRootCookie sets prebuilt cookie to response headers
func SuccessJSON ¶
func SuccessJSON(ctx *fasthttp.RequestCtx, status int, data interface{}, count int, offset int) error
SuccessJSON todo descr
Types ¶
Click to show internal directories.
Click to hide internal directories.