Documentation
¶
Index ¶
- Variables
- type UserStore
- func (m *UserStore) Create(ctx context.Context, u *user.User) error
- func (m *UserStore) Delete(ctx context.Context, id uint) error
- func (m *UserStore) GetByEmail(ctx context.Context, email string) (*user.User, error)
- func (m *UserStore) GetByID(ctx context.Context, id uint) (*user.User, error)
- func (m *UserStore) List(ctx context.Context) ([]user.User, error)
- func (m *UserStore) SetError(op string, err error)
- func (m *UserStore) Update(ctx context.Context, u *user.User) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNotFound is returned when a user cannot be found ErrNotFound = errors.New("user not found") // ErrNoValue is returned when no value is available ErrNoValue = errors.New("no value returned") )
Functions ¶
This section is empty.
Types ¶
type UserStore ¶
UserStore is a mock implementation of user.Store interface
func (*UserStore) GetByEmail ¶
GetByEmail implements Store.GetByEmail
Click to show internal directories.
Click to hide internal directories.