Documentation ¶
Index ¶
- type UserStorage
- func (_m *UserStorage) Create(ctx context.Context, username string, email string, password string) (*entities.User, error)
- func (_m *UserStorage) Find(ctx context.Context, email string, username string) (*entities.User, error)
- func (_m *UserStorage) GetByEmail(ctx context.Context, email string) (*entities.User, error)
- func (_m *UserStorage) GetByID(ctx context.Context, id int64) (*entities.User, error)
- func (_m *UserStorage) GetByUsername(ctx context.Context, username string) (*entities.User, error)
- func (_m *UserStorage) List(ctx context.Context) ([]*entities.User, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserStorage ¶
UserStorage is an autogenerated mock type for the UserStorage type
func (*UserStorage) Create ¶
func (_m *UserStorage) Create(ctx context.Context, username string, email string, password string) (*entities.User, error)
Create provides a mock function with given fields: ctx, username, email, password
func (*UserStorage) Find ¶
func (_m *UserStorage) Find(ctx context.Context, email string, username string) (*entities.User, error)
Find provides a mock function with given fields: ctx, email, username
func (*UserStorage) GetByEmail ¶
GetByEmail provides a mock function with given fields: ctx, email
func (*UserStorage) GetByUsername ¶
GetByUsername provides a mock function with given fields: ctx, username
Click to show internal directories.
Click to hide internal directories.