Documentation ¶
Index ¶
- type AuthMiddleware
- type MockAuthMiddleware
- type MockAuthMiddleware_AuthenticateWithJWT_Call
- func (_c *MockAuthMiddleware_AuthenticateWithJWT_Call) Return(_a0 func(*fiber.Ctx) error) *MockAuthMiddleware_AuthenticateWithJWT_Call
- func (_c *MockAuthMiddleware_AuthenticateWithJWT_Call) Run(run func(conf *config.Config, tokenType TokenType)) *MockAuthMiddleware_AuthenticateWithJWT_Call
- func (_c *MockAuthMiddleware_AuthenticateWithJWT_Call) RunAndReturn(run func(*config.Config, TokenType) func(*fiber.Ctx) error) *MockAuthMiddleware_AuthenticateWithJWT_Call
- type MockAuthMiddleware_Expecter
- type TokenType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthMiddleware ¶
type AuthMiddleware interface {
AuthenticateWithJWT(conf *config.Config, tokenType TokenType) fiber.Handler
}
func NewAuthMiddleware ¶
func NewAuthMiddleware(usecase usecase.AuthUseCase) AuthMiddleware
type MockAuthMiddleware ¶
MockAuthMiddleware is an autogenerated mock type for the AuthMiddleware type
func NewMockAuthMiddleware ¶
func NewMockAuthMiddleware(t interface { mock.TestingT Cleanup(func()) }) *MockAuthMiddleware
NewMockAuthMiddleware creates a new instance of MockAuthMiddleware. 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 (*MockAuthMiddleware) AuthenticateWithJWT ¶
func (_m *MockAuthMiddleware) AuthenticateWithJWT(conf *config.Config, tokenType TokenType) func(*fiber.Ctx) error
AuthenticateWithJWT provides a mock function with given fields: conf, tokenType
func (*MockAuthMiddleware) EXPECT ¶
func (_m *MockAuthMiddleware) EXPECT() *MockAuthMiddleware_Expecter
type MockAuthMiddleware_AuthenticateWithJWT_Call ¶
MockAuthMiddleware_AuthenticateWithJWT_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AuthenticateWithJWT'
func (*MockAuthMiddleware_AuthenticateWithJWT_Call) Return ¶
func (_c *MockAuthMiddleware_AuthenticateWithJWT_Call) Return(_a0 func(*fiber.Ctx) error) *MockAuthMiddleware_AuthenticateWithJWT_Call
func (*MockAuthMiddleware_AuthenticateWithJWT_Call) Run ¶
func (_c *MockAuthMiddleware_AuthenticateWithJWT_Call) Run(run func(conf *config.Config, tokenType TokenType)) *MockAuthMiddleware_AuthenticateWithJWT_Call
func (*MockAuthMiddleware_AuthenticateWithJWT_Call) RunAndReturn ¶
func (_c *MockAuthMiddleware_AuthenticateWithJWT_Call) RunAndReturn(run func(*config.Config, TokenType) func(*fiber.Ctx) error) *MockAuthMiddleware_AuthenticateWithJWT_Call
type MockAuthMiddleware_Expecter ¶
type MockAuthMiddleware_Expecter struct {
// contains filtered or unexported fields
}
func (*MockAuthMiddleware_Expecter) AuthenticateWithJWT ¶
func (_e *MockAuthMiddleware_Expecter) AuthenticateWithJWT(conf interface{}, tokenType interface{}) *MockAuthMiddleware_AuthenticateWithJWT_Call
AuthenticateWithJWT is a helper method to define mock.On call
- conf *config.Config
- tokenType TokenType
Click to show internal directories.
Click to hide internal directories.