Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthService ¶
AuthService interface
type JWTService ¶
type JWTService interface { Create(*entity.User) (*entity.Token, error) GetUser(context.Context, string) (*entity.User, error) }
JWTService interface
type Service ¶
type Service struct { Auth AuthService User UserService Token TokenService }
Service struct
type TokenService ¶
type TokenService interface { Create(*entity.Token) (*entity.Token, error) FindByUserID(uuid.UUID) (*entity.Token, error) FindByToken(string) (*entity.Token, error) }
TokenService interface
type UserService ¶
type UserService interface { All(context.Context) ([]*entity.User, error) Create(context.Context, *entity.User) (*entity.User, error) FindByID(context.Context, uuid.UUID) (*entity.User, error) FindByEmail(context.Context, string) (*entity.User, error) ChangePassword(context.Context, uuid.UUID, string) (*entity.User, error) }
UserService interface
Click to show internal directories.
Click to hide internal directories.