Documentation ¶ Index ¶ Variables type UserRepository Constants ¶ This section is empty. Variables ¶ View Source var ( ErrUserNotFound = errors.New("repository: the user was not found") ErrUserAlreadyExists = errors.New("repository: user already exists") ErrUserHasNoUpdates = errors.New("repository: failed to update user") ) Functions ¶ This section is empty. Types ¶ type UserRepository ¶ type UserRepository interface { GetByEmail(string) (*model.User, error) Add(*model.User) error Update(*model.User) error } UserRepository defines the interface for the user repository. Source Files ¶ View all Source files user.go Click to show internal directories. Click to hide internal directories.