authserviceiface

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 22, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package authserviceiface is a generated GoMock package.

Index

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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL