Documentation ¶
Overview ¶
Package middleware is a generated GoMock package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IJwtService ¶
type JwtService ¶
type JwtService struct {
// contains filtered or unexported fields
}
func InitAuthService ¶
func InitAuthService(privateKeyPath string, publicKeyPath string) *JwtService
func (*JwtService) GenerateToken ¶
func (svc *JwtService) GenerateToken(userID string) (string, error)
type MockIJwtService ¶
type MockIJwtService struct {
// contains filtered or unexported fields
}
MockIJwtService is a mock of IJwtService interface.
func NewMockIJwtService ¶
func NewMockIJwtService(ctrl *gomock.Controller) *MockIJwtService
NewMockIJwtService creates a new mock instance.
func (*MockIJwtService) Auth ¶
func (m *MockIJwtService) Auth(r *http.Request) (*User, error)
Auth mocks base method.
func (*MockIJwtService) EXPECT ¶
func (m *MockIJwtService) EXPECT() *MockIJwtServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockIJwtService) GenerateToken ¶
func (m *MockIJwtService) GenerateToken(userID string) (string, error)
GenerateToken mocks base method.
type MockIJwtServiceMockRecorder ¶
type MockIJwtServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockIJwtServiceMockRecorder is the mock recorder for MockIJwtService.
func (*MockIJwtServiceMockRecorder) Auth ¶
func (mr *MockIJwtServiceMockRecorder) Auth(r interface{}) *gomock.Call
Auth indicates an expected call of Auth.
func (*MockIJwtServiceMockRecorder) GenerateToken ¶
func (mr *MockIJwtServiceMockRecorder) GenerateToken(userID interface{}) *gomock.Call
GenerateToken indicates an expected call of GenerateToken.
Click to show internal directories.
Click to hide internal directories.