Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserRepository ¶
type UserRepository interface { InitialRepository(ctx context.Context) error CreateUser(ctx context.Context, user *model.User) error DeleteUser(ctx context.Context, user *model.User) error UpdateUser(ctx context.Context, user *model.User) error GetUserByID(ctx context.Context, id string) (*model.User, error) GetUserByEmail(ctx context.Context, email string) (*model.User, error) GetAllUsers(ctx context.Context) ([]*model.User, error) }
type UserService ¶
type UserService interface { Login(ctx context.Context, username, password string) (*model.User, error) Register(ctx context.Context, email string, password string) (*model.User, error) ActivateUser(ctx context.Context, userID string, activationCode string) error ForgotPassword(ctx context.Context, email string) error ResetPassword(ctx context.Context, userID string, passwordCode string, newPass string) error UpdatePassword(ctx context.Context, userID string, currentPass string, newPass string) error DeleteUser(ctx context.Context, id string) error GetAllUsers(ctx context.Context) ([]*model.User, error) GetUserByID(ctx context.Context, id string) (*model.User, error) GetUserByEmail(ctx context.Context, email string) (*model.User, error) }
Click to show internal directories.
Click to hide internal directories.