cors

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ICORS

type ICORS struct {
	mock.Mock
}

ICORS is an autogenerated mock type for the ICORS type

func NewICORS

func NewICORS(t interface {
	mock.TestingT
	Cleanup(func())
}) *ICORS

NewICORS creates a new instance of ICORS. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ICORS) EXPECT added in v1.0.2

func (_m *ICORS) EXPECT() *ICORS_Expecter

func (*ICORS) Handler

func (_mock *ICORS) Handler() mux.MiddlewareFunc

Handler provides a mock function for the type ICORS

type ICORSFactory

type ICORSFactory struct {
	mock.Mock
}

ICORSFactory is an autogenerated mock type for the ICORSFactory type

func NewICORSFactory

func NewICORSFactory(t interface {
	mock.TestingT
	Cleanup(func())
}) *ICORSFactory

NewICORSFactory creates a new instance of ICORSFactory. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ICORSFactory) EXPECT added in v1.0.2

func (_m *ICORSFactory) EXPECT() *ICORSFactory_Expecter

func (*ICORSFactory) NewCORS

func (_mock *ICORSFactory) NewCORS(config subrouter.CORSConfig) cors.ICORS

NewCORS provides a mock function for the type ICORSFactory

type ICORSFactory_Expecter added in v1.0.2

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

func (*ICORSFactory_Expecter) NewCORS added in v1.0.2

func (_e *ICORSFactory_Expecter) NewCORS(config interface{}) *ICORSFactory_NewCORS_Call

NewCORS is a helper method to define mock.On call

  • config subrouter.CORSConfig

type ICORSFactory_NewCORS_Call added in v1.0.2

type ICORSFactory_NewCORS_Call struct {
	*mock.Call
}

ICORSFactory_NewCORS_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewCORS'

func (*ICORSFactory_NewCORS_Call) Return added in v1.0.2

func (*ICORSFactory_NewCORS_Call) Run added in v1.0.2

func (*ICORSFactory_NewCORS_Call) RunAndReturn added in v1.0.2

type ICORS_Expecter added in v1.0.2

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

func (*ICORS_Expecter) Handler added in v1.0.2

func (_e *ICORS_Expecter) Handler() *ICORS_Handler_Call

Handler is a helper method to define mock.On call

type ICORS_Handler_Call added in v1.0.2

type ICORS_Handler_Call struct {
	*mock.Call
}

ICORS_Handler_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Handler'

func (*ICORS_Handler_Call) Return added in v1.0.2

func (_c *ICORS_Handler_Call) Return(middlewareFunc mux.MiddlewareFunc) *ICORS_Handler_Call

func (*ICORS_Handler_Call) Run added in v1.0.2

func (_c *ICORS_Handler_Call) Run(run func()) *ICORS_Handler_Call

func (*ICORS_Handler_Call) RunAndReturn added in v1.0.2

func (_c *ICORS_Handler_Call) RunAndReturn(run func() mux.MiddlewareFunc) *ICORS_Handler_Call

Jump to

Keyboard shortcuts

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