cors

package
v2.0.0-...-0229899 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(config *viper.Viper) middleware.Object

func NewConfig

func NewConfig(data *viper.Viper) cors.Config

Types

type Cors

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

func (*Cors) GetConfig

func (c *Cors) GetConfig() *viper.Viper

func (*Cors) Handle

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

func (*Cors) SetConfig

func (c *Cors) SetConfig(config *viper.Viper)

Jump to

Keyboard shortcuts

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