Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Use ¶
func Use(h fasthttp.RequestHandler, mws ...RequestMiddleware) fasthttp.RequestHandler
Types ¶
type RequestMiddleware ¶
type RequestMiddleware func(fasthttp.RequestHandler) fasthttp.RequestHandler
func BodyLimit ¶
func BodyLimit() RequestMiddleware
func CORS ¶
func CORS(serverAuthClientsURLs []string) RequestMiddleware
func Logger ¶
func Logger(log logger.Logger) RequestMiddleware
func QueryKeyValidation ¶
func QueryKeyValidation(queryKey string) RequestMiddleware
func RateLimit ¶
func RateLimit( cache contract.CacheManager, period time.Duration, limit int64, ) RequestMiddleware
Click to show internal directories.
Click to hide internal directories.