Versions in this module Expand all Collapse all v0 v0.2.0 Aug 13, 2021 Changes in this version + func AllowAll() func(*Options) + func SetAllowCredentials(allowCredentials bool) func(*Options) + func SetAllowOriginFunc(allowOriginFunc func(origin string) bool) func(*Options) + func SetAllowOriginRequestFunc(allowOriginRequestFunc func(ctx *fasthttp.RequestCtx, origin string) bool) func(*Options) + func SetAllowedHeaders(allowedHeaders []string) func(*Options) + func SetAllowedMethods(allowedMethods []string) func(*Options) + func SetAllowedOrigins(allowedOrigins []string) func(*Options) + func SetDebug(debug bool) func(*Options) + func SetExposedHeaders(exposedHeaders []string) func(*Options) + func SetLogger(logger Logger) func(*Options) + func SetMaxAge(maxAge int) func(*Options) + type Logger interface + Printf func(string, ...interface{}) + type Options struct + AllowCredentials bool + AllowOriginFunc func(origin string) bool + AllowOriginRequestFunc func(ctx *fasthttp.RequestCtx, origin string) bool + AllowedHeaders []string + AllowedMethods []string + AllowedOrigins []string + Debug bool + ExposedHeaders []string + Logger Logger + MaxAge int + type RequestMiddleware func(fasthttp.RequestHandler) fasthttp.RequestHandler + func New(opts ...func(*Options)) RequestMiddleware