middleware

package
v1.0.0-...-a0f063d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 9, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

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 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) http.Middleware

func Tls

func Tls(host ...string) contractshttp.Middleware

Types

type Options

type Options = cors.Options

Options is a configuration container to setup the CORS middleware.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL