service

package
v0.0.0-...-7955d73 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockCryptoService

type MockCryptoService struct {
	mock.Mock
}

func (*MockCryptoService) Hash

func (m *MockCryptoService) Hash(password string) (string, error)

func (*MockCryptoService) Verify

func (m *MockCryptoService) Verify(password, hashedPassword string) error

type MockJwtService

type MockJwtService struct {
	mock.Mock
}

func (*MockJwtService) Generate

func (js *MockJwtService) Generate(user *entity.User) (string, error)

func (*MockJwtService) Verify

func (js *MockJwtService) Verify(token string) (*entity.Token, error)

type MockLoggerService

type MockLoggerService struct {
	mock.Mock
}

func (*MockLoggerService) Debug

func (ls *MockLoggerService) Debug(msg string)

func (*MockLoggerService) Error

func (ls *MockLoggerService) Error(msg string)

func (*MockLoggerService) Info

func (ls *MockLoggerService) Info(msg string)

func (*MockLoggerService) Trace

func (ls *MockLoggerService) Trace(msg string)

func (*MockLoggerService) Warn

func (ls *MockLoggerService) Warn(msg string)

type MockUserService

type MockUserService struct {
	mock.Mock
}

func (*MockUserService) CreateUser

func (m *MockUserService) CreateUser(user *entity.User) (*entity.User, error)

func (*MockUserService) DeleteUser

func (m *MockUserService) DeleteUser(id string) error

func (*MockUserService) GetUser

func (m *MockUserService) GetUser(id string) (*entity.User, error)

func (*MockUserService) GetUserByEmail

func (m *MockUserService) GetUserByEmail(email string) (*entity.User, error)

func (*MockUserService) GetUsers

func (m *MockUserService) GetUsers() ([]*entity.User, error)

func (*MockUserService) UpdateUser

func (m *MockUserService) UpdateUser(user *entity.User) (*entity.User, error)

Jump to

Keyboard shortcuts

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