middleware

package
v0.0.0-...-41a006c Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cors

type Cors struct {
	// contains filtered or unexported fields
}

func NewCors

func NewCors(opts ...CorsOption) *Cors

func (*Cors) Func

func (c *Cors) Func() gin.HandlerFunc

type CorsOption

type CorsOption func(c *Cors)

func WithAllHeaders

func WithAllHeaders(allowHeaders []string) CorsOption

func WithAllOrigins

func WithAllOrigins(allowOrigins []string) CorsOption

func WithAllowCredentials

func WithAllowCredentials(allowCredentials bool) CorsOption

func WithAllowMethods

func WithAllowMethods(allowMethods []string) CorsOption

func WithExposeHeaders

func WithExposeHeaders(exposeHeaders []string) CorsOption

func WithMaxAge

func WithMaxAge(maxAge string) CorsOption

type Timeout

type Timeout struct {
	// contains filtered or unexported fields
}

func NewTimeout

func NewTimeout(opts ...TimeoutOption) *Timeout

func (*Timeout) Func

func (t *Timeout) Func() gin.HandlerFunc

type TimeoutOption

type TimeoutOption func(t *Timeout)

func WithTimeout

func WithTimeout(d time.Duration) TimeoutOption

type Trace

type Trace struct{}

func NewTrace

func NewTrace() *Trace

func (*Trace) Func

func (t *Trace) Func() gin.HandlerFunc

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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