Documentation ¶
Overview ¶
Package service is a generated GoMock package.
Index ¶
- Variables
- type JWTClaims
- type MockUserTokenService
- func (m *MockUserTokenService) EXPECT() *MockUserTokenServiceMockRecorder
- func (m *MockUserTokenService) GetUser(arg0 context.Context, arg1 string) (*model.User, error)
- func (m *MockUserTokenService) Issue(arg0 context.Context, arg1 *model.User) (string, string, error)
- func (m *MockUserTokenService) Refresh(arg0 context.Context, arg1 string) (string, string, error)
- func (m *MockUserTokenService) Revoke(arg0 context.Context, arg1 string) error
- func (m *MockUserTokenService) RevokeAll(arg0 context.Context, arg1 *model.User, arg2 *sql.Tx) error
- type MockUserTokenServiceMockRecorder
- func (mr *MockUserTokenServiceMockRecorder) GetUser(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockUserTokenServiceMockRecorder) Issue(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockUserTokenServiceMockRecorder) Refresh(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockUserTokenServiceMockRecorder) Revoke(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockUserTokenServiceMockRecorder) RevokeAll(arg0, arg1, arg2 interface{}) *gomock.Call
- type UserJWTTokenService
- func (s *UserJWTTokenService) GetUser(ctx context.Context, accessToken string) (*model.User, error)
- func (s *UserJWTTokenService) Issue(ctx context.Context, user *model.User) (string, string, error)
- func (s *UserJWTTokenService) Refresh(ctx context.Context, refreshToken string) (string, string, error)
- func (s *UserJWTTokenService) Revoke(ctx context.Context, refreshToken string) error
- func (s *UserJWTTokenService) RevokeAll(ctx context.Context, user *model.User, tx *sql.Tx) error
- type UserTokenService
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrTokenRevocationFailed = errors.New("token revocation failed")
)
Functions ¶
This section is empty.
Types ¶
type MockUserTokenService ¶
type MockUserTokenService struct {
// contains filtered or unexported fields
}
MockUserTokenService is a mock of UserTokenService interface.
func NewMockUserTokenService ¶
func NewMockUserTokenService(ctrl *gomock.Controller) *MockUserTokenService
NewMockUserTokenService creates a new mock instance.
func (*MockUserTokenService) EXPECT ¶
func (m *MockUserTokenService) EXPECT() *MockUserTokenServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockUserTokenService) Issue ¶
func (m *MockUserTokenService) Issue(arg0 context.Context, arg1 *model.User) (string, string, error)
Issue mocks base method.
type MockUserTokenServiceMockRecorder ¶
type MockUserTokenServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockUserTokenServiceMockRecorder is the mock recorder for MockUserTokenService.
func (*MockUserTokenServiceMockRecorder) GetUser ¶
func (mr *MockUserTokenServiceMockRecorder) GetUser(arg0, arg1 interface{}) *gomock.Call
GetUser indicates an expected call of GetUser.
func (*MockUserTokenServiceMockRecorder) Issue ¶
func (mr *MockUserTokenServiceMockRecorder) Issue(arg0, arg1 interface{}) *gomock.Call
Issue indicates an expected call of Issue.
func (*MockUserTokenServiceMockRecorder) Refresh ¶
func (mr *MockUserTokenServiceMockRecorder) Refresh(arg0, arg1 interface{}) *gomock.Call
Refresh indicates an expected call of Refresh.
func (*MockUserTokenServiceMockRecorder) Revoke ¶
func (mr *MockUserTokenServiceMockRecorder) Revoke(arg0, arg1 interface{}) *gomock.Call
Revoke indicates an expected call of Revoke.
func (*MockUserTokenServiceMockRecorder) RevokeAll ¶
func (mr *MockUserTokenServiceMockRecorder) RevokeAll(arg0, arg1, arg2 interface{}) *gomock.Call
RevokeAll indicates an expected call of RevokeAll.
type UserJWTTokenService ¶
type UserJWTTokenService struct {
// contains filtered or unexported fields
}
func NewJWTTokenService ¶
type UserTokenService ¶
Click to show internal directories.
Click to hide internal directories.