Documentation ¶
Overview ¶
Package jwt is a generated GoMock package.
Index ¶
- type JWT
- type MockJWT
- func (m *MockJWT) EXPECT() *MockJWTMockRecorder
- func (m *MockJWT) GetUserClaims(ctx context.Context) map[string]interface{}
- func (m *MockJWT) GetUserEmail(ctx context.Context) string
- func (m *MockJWT) GetUserID(ctx context.Context) string
- func (m *MockJWT) NewToken(secret, issuer, subject string, duration time.Duration) (string, error)
- type MockJWTMockRecorder
- func (mr *MockJWTMockRecorder) GetUserClaims(ctx interface{}) *gomock.Call
- func (mr *MockJWTMockRecorder) GetUserEmail(ctx interface{}) *gomock.Call
- func (mr *MockJWTMockRecorder) GetUserID(ctx interface{}) *gomock.Call
- func (mr *MockJWTMockRecorder) NewToken(secret, issuer, subject, duration interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JWT ¶
type MockJWT ¶
type MockJWT struct {
// contains filtered or unexported fields
}
MockJWT is a mock of JWT interface.
func NewMockJWT ¶
func NewMockJWT(ctrl *gomock.Controller) *MockJWT
NewMockJWT creates a new mock instance.
func (*MockJWT) EXPECT ¶
func (m *MockJWT) EXPECT() *MockJWTMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockJWT) GetUserClaims ¶
GetUserClaims mocks base method.
func (*MockJWT) GetUserEmail ¶
GetUserEmail mocks base method.
type MockJWTMockRecorder ¶
type MockJWTMockRecorder struct {
// contains filtered or unexported fields
}
MockJWTMockRecorder is the mock recorder for MockJWT.
func (*MockJWTMockRecorder) GetUserClaims ¶
func (mr *MockJWTMockRecorder) GetUserClaims(ctx interface{}) *gomock.Call
GetUserClaims indicates an expected call of GetUserClaims.
func (*MockJWTMockRecorder) GetUserEmail ¶
func (mr *MockJWTMockRecorder) GetUserEmail(ctx interface{}) *gomock.Call
GetUserEmail indicates an expected call of GetUserEmail.
func (*MockJWTMockRecorder) GetUserID ¶
func (mr *MockJWTMockRecorder) GetUserID(ctx interface{}) *gomock.Call
GetUserID indicates an expected call of GetUserID.
func (*MockJWTMockRecorder) NewToken ¶
func (mr *MockJWTMockRecorder) NewToken(secret, issuer, subject, duration interface{}) *gomock.Call
NewToken indicates an expected call of NewToken.
Click to show internal directories.
Click to hide internal directories.