Created
June 4, 2019 02:19
-
-
Save eminetto/d03afa66379de28ad9482356d36f0acd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type Repository interface { | |
Find(id entity.ID) (*entity.User, error) | |
FindByEmail(email string) (*entity.User, error) | |
FindByChangePasswordHash(hash string) (*entity.User, error) | |
FindByValidationHash(hash string) (*entity.User, error) | |
FindByChallengeSubmissionHash(hash string) (*entity.User, error) | |
FindByNickname(nickname string) (*entity.User, error) | |
FindAll() ([]*entity.User, error) | |
Update(user *entity.User) error | |
Store(user *entity.User) (entity.ID, error) | |
Remove(id entity.ID) error | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment