Documentation ¶
Index ¶
- Constants
- func AllowAll() gin.HandlerFunc
- func Cors() httpcontract.Middleware
- func Default() gin.HandlerFunc
- func New(options Options) gin.HandlerFunc
- func Opentracing(tracer opentracing.Tracer) http.Middleware
- func Throttle(name string) httpcontract.Middleware
- func Tls(host ...string) httpcontract.Middleware
- type Options
Constants ¶
View Source
const ( OpentracingTracer = "opentracing_tracer" OpentracingCtx = "opentracing_ctx" )
Variables ¶
This section is empty.
Functions ¶
func AllowAll ¶
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 ¶
func Cors() httpcontract.Middleware
func Default ¶
func Default() gin.HandlerFunc
Default creates a new CORS Gin middleware with default options.
func New ¶
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
func Throttle ¶
func Throttle(name string) httpcontract.Middleware
func Tls ¶
func Tls(host ...string) httpcontract.Middleware
Types ¶
Click to show internal directories.
Click to hide internal directories.