Documentation ¶
Overview ¶
Package authserviceiface is a generated GoMock package.
Index ¶
- type AuthService
- type MockAuthService
- func (m *MockAuthService) CreateVerificationCode(ctx context.Context, bits, expireTime int64) (*verificationcode.VerificationCode, error)
- func (m *MockAuthService) EXPECT() *MockAuthServiceMockRecorder
- func (m *MockAuthService) ValidateVerificationCode(ctx context.Context, code *verificationcode.VerificationCode) (bool, error)
- type MockAuthServiceMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthService ¶
type AuthService interface { CreateVerificationCode(ctx context.Context, bits, expireTime int64) (*verificationcode.VerificationCode, error) ValidateVerificationCode(ctx context.Context, code *verificationcode.VerificationCode) (bool, error) }
type MockAuthService ¶
type MockAuthService struct {
// contains filtered or unexported fields
}
MockAuthService is a mock of AuthService interface.
func NewMockAuthService ¶
func NewMockAuthService(ctrl *gomock.Controller) *MockAuthService
NewMockAuthService creates a new mock instance.
func (*MockAuthService) CreateVerificationCode ¶
func (m *MockAuthService) CreateVerificationCode(ctx context.Context, bits, expireTime int64) (*verificationcode.VerificationCode, error)
CreateVerificationCode mocks base method.
func (*MockAuthService) EXPECT ¶
func (m *MockAuthService) EXPECT() *MockAuthServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockAuthService) ValidateVerificationCode ¶
func (m *MockAuthService) ValidateVerificationCode(ctx context.Context, code *verificationcode.VerificationCode) (bool, error)
ValidateVerificationCode mocks base method.
type MockAuthServiceMockRecorder ¶
type MockAuthServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockAuthServiceMockRecorder is the mock recorder for MockAuthService.
func (*MockAuthServiceMockRecorder) CreateVerificationCode ¶
func (mr *MockAuthServiceMockRecorder) CreateVerificationCode(ctx, bits, expireTime any) *gomock.Call
CreateVerificationCode indicates an expected call of CreateVerificationCode.
func (*MockAuthServiceMockRecorder) ValidateVerificationCode ¶
func (mr *MockAuthServiceMockRecorder) ValidateVerificationCode(ctx, code any) *gomock.Call
ValidateVerificationCode indicates an expected call of ValidateVerificationCode.
Click to show internal directories.
Click to hide internal directories.