gin

package
v0.0.0-...-defed71 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AppName = "cors"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CORS

type CORS struct {
	ioc.ObjectImpl

	Enabled        bool     `json:"enabled" yaml:"enabled"`
	AllowedHeaders []string `json:"allowedHeaders" yaml:"allowedHeaders"`
	AllowOrigins   []string `json:"allowOrigins" yaml:"allowOrigins"`
	AllowedMethods []string `json:"allowedMethods" yaml:"allowedMethods"`
	ExposeHeaders  []string `json:"exposeHeaders" yaml:"exposeHeaders"`
	AllowCookies   bool     `json:"allowCookies" yaml:"allowCookies"`
	MaxAge         int      `json:"maxAge" yaml:"maxAge"`
	// contains filtered or unexported fields
}

func (*CORS) Init

func (c *CORS) Init()

func (*CORS) Name

func (c *CORS) Name() string

func (*CORS) Priority

func (c *CORS) Priority() int

Jump to

Keyboard shortcuts

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