// Code generated by depstubber. DO NOT EDIT.
// This is a simple stub for github.com/gin-contrib/cors, strictly for use in testing.

// See the LICENSE file for information about the licensing of the original library.
// Source: github.com/gin-contrib/cors (exports: Config; functions: New)

// Package cors is a stub of github.com/gin-contrib/cors, generated by depstubber.
package cors

import (
	time "time"

	"github.com/gin-gonic/gin"
)

type Config struct {
	AllowAllOrigins        bool
	AllowOrigins           []string
	AllowOriginFunc        func(string) bool
	AllowMethods           []string
	AllowHeaders           []string
	AllowCredentials       bool
	ExposeHeaders          []string
	MaxAge                 time.Duration
	AllowWildcard          bool
	AllowBrowserExtensions bool
	AllowWebSockets        bool
	AllowFiles             bool
}

func (_ Config) Validate() error {
	return nil
}

func (_ *Config) AddAllowHeaders(_ ...string) {}

func (_ *Config) AddAllowMethods(_ ...string) {}

func (_ *Config) AddExposeHeaders(_ ...string) {}

func New(_ Config) gin.HandlerFunc {
	return nil
}
