Documentation
¶
Index ¶
Constants ¶
View Source
const ( OpentracingTracer = "opentracing_tracer" OpentracingCtx = "opentracing_ctx" )
Variables ¶
This section is empty.
Functions ¶
func AllowAll ¶ added in v1.3.0
func AllowAll() gin.HandlerFunc
AllowAll creates a new CORS Gin middleware with permissive configuration allowing all origins with all standard methods with any header and credentials.
func Cors ¶ added in v1.0.0
func Cors() contractshttp.Middleware
func Default ¶ added in v1.3.0
func Default() gin.HandlerFunc
Default creates a new CORS Gin middleware with default options.
func New ¶ added in v1.3.0
func New(options Options) gin.HandlerFunc
New creates a new CORS Gin middleware with the provided options.
func Opentracing ¶
func Opentracing(tracer opentracing.Tracer) http.Middleware
Types ¶
Click to show internal directories.
Click to hide internal directories.