Documentation
¶
Index ¶
- type ICORS
- type ICORSFactory
- type ICORSFactory_Expecter
- type ICORSFactory_NewCORS_Call
- func (_c *ICORSFactory_NewCORS_Call) Return(iCORS cors.ICORS) *ICORSFactory_NewCORS_Call
- func (_c *ICORSFactory_NewCORS_Call) Run(run func(config subrouter.CORSConfig)) *ICORSFactory_NewCORS_Call
- func (_c *ICORSFactory_NewCORS_Call) RunAndReturn(run func(config subrouter.CORSConfig) cors.ICORS) *ICORSFactory_NewCORS_Call
- type ICORS_Expecter
- type ICORS_Handler_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ICORS ¶
ICORS is an autogenerated mock type for the ICORS type
func NewICORS ¶
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 ¶
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
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 (_c *ICORSFactory_NewCORS_Call) Return(iCORS cors.ICORS) *ICORSFactory_NewCORS_Call
func (*ICORSFactory_NewCORS_Call) Run ¶ added in v1.0.2
func (_c *ICORSFactory_NewCORS_Call) Run(run func(config subrouter.CORSConfig)) *ICORSFactory_NewCORS_Call
func (*ICORSFactory_NewCORS_Call) RunAndReturn ¶ added in v1.0.2
func (_c *ICORSFactory_NewCORS_Call) RunAndReturn(run func(config subrouter.CORSConfig) cors.ICORS) *ICORSFactory_NewCORS_Call
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
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