Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository interface { //user interface GetUsers(limit, page int) ([]*models.User, error) GetUserByUsername(username string) (*models.User, error) GetUserByEmail(email string) (*models.User, error) UsernameExists(username string) error EmailExists(email string) error DeleteUser(username string) error CreateUser(user *models.User) (*models.User, error) UpdateUser(username string, update *models.User) (*models.User, error) // file interface InsertFileData(file *models.File) (*models.File, error) GetFileByFileName(filename string) (*models.File, error) AllFilesByUser(username string, limit, page int) ([]*models.File, error) FileNameExists(fileName string) error FileDelete(fileName string) error }
Click to show internal directories.
Click to hide internal directories.