mocks

package
v0.0.0-...-5b70f3c Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CodeValidator

type CodeValidator struct {
	mock.Mock
}

CodeValidator is an autogenerated mock type for the CodeValidator type

func (*CodeValidator) Validate

func (_m *CodeValidator) Validate(key string, code string) error

Validate provides a mock function with given fields: key, code

type Repo

type Repo struct {
	mock.Mock
}

Repo is an autogenerated mock type for the Repo type

func (*Repo) LoginByEmail

func (_m *Repo) LoginByEmail(email string) (int, error)

LoginByEmailCode provides a mock function with given fields: email

func (*Repo) LoginByMobile

func (_m *Repo) LoginByMobile(mobile string) (int, error)

LoginByMobileCode provides a mock function with given fields: mobile

func (*Repo) LoginByPassword

func (_m *Repo) LoginByPassword(username string, pass string) (int, error)

LoginByPassword provides a mock function with given fields: username, pass

func (*Repo) RegisterByEmail

func (_m *Repo) RegisterByEmail(email string) (int, error)

RegisterByEmailCode provides a mock function with given fields: email

func (*Repo) RegisterByMobile

func (_m *Repo) RegisterByMobile(mobile string) (int, error)

RegisterByMobileCode provides a mock function with given fields: mobile

func (*Repo) RegisterByPassword

func (_m *Repo) RegisterByPassword(username string, pass string) (int, error)

RegisterByPassword provides a mock function with given fields: username, pass

type Service

type Service struct {
	mock.Mock
}

Service is an autogenerated mock type for the Service type

func (*Service) LoginByEmailCode

func (_m *Service) LoginByEmailCode(email string, code string) (int, error)

LoginByEmailCode provides a mock function with given fields: email, code

func (*Service) LoginByMobileCode

func (_m *Service) LoginByMobileCode(mobile string, code string) (int, error)

LoginByMobileCode provides a mock function with given fields: mobile, code

func (*Service) LoginByPassword

func (_m *Service) LoginByPassword(username string, pass string) (int, error)

LoginByPassword provides a mock function with given fields: username, pass

func (*Service) RegisterByEmailCode

func (_m *Service) RegisterByEmailCode(email string, code string) (int, error)

RegisterByEmailCode provides a mock function with given fields: email, code

func (*Service) RegisterByMobileCode

func (_m *Service) RegisterByMobileCode(mobile string, code string) (int, error)

RegisterByMobileCode provides a mock function with given fields: mobile, code

func (*Service) RegisterByPassword

func (_m *Service) RegisterByPassword(username string, pass string) (int, error)

RegisterByPassword provides a mock function with given fields: username, pass

Jump to

Keyboard shortcuts

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