Documentation ¶
Index ¶
- func Created(c *routing.Context, msg string, service string) error
- func Deleted(c *routing.Context, msg string, service string) error
- func Error(c *routing.Context, err string, statusCode int, service string) error
- func GetHeadersFromRequest(request fasthttp.Request) map[string]string
- func GetQueryParamsFromRequest(c *routing.Context) map[string]string
- func GetQueryParamsFromRequestCtx(c *fasthttp.RequestCtx) map[string]string
- func GetURIWithParams(c *routing.Context) string
- func MakeRequest(method string, url string, body string, headers map[string]string) *fasthttp.Response
- func NotAuthorized(c *routing.Context, service string) error
- func NotFound(c *routing.Context, msg string, service string) error
- func Ok(c *routing.Context, msg string, service string) error
- func OkFormated(c *routing.Context, msg string, service string) error
- func ParsePageParam(c *routing.Context) (int, error)
- func Response(c *routing.Context, response string, statuscode int, service string, ...)
- type ResponseInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetQueryParamsFromRequestCtx ¶
func GetQueryParamsFromRequestCtx(c *fasthttp.RequestCtx) map[string]string
func GetURIWithParams ¶
func MakeRequest ¶
func OkFormated ¶
OkFormated creates and send created response
func ParsePageParam ¶
ParsePageParam parses page query parameter
Types ¶
type ResponseInfo ¶
Click to show internal directories.
Click to hide internal directories.