Documentation ¶
Index ¶
- func NewAuthService(ioc di.Container) entity.AuthService
- func NewJWTService(ioc di.Container) entity.JWTService
- func NewTokenService(ioc di.Container) entity.TokenService
- func NewUserService(ioc di.Container) entity.UserService
- type AuthService
- type JWTService
- type Service
- type TokenService
- type UserService
- func (u UserService) All() ([]*entity.User, error)
- func (u UserService) ChangePassword(id uuid.UUID, password string) (*entity.User, error)
- func (u UserService) Create(user *entity.User) (*entity.User, error)
- func (u UserService) FindByEmail(email string) (*entity.User, error)
- func (u UserService) FindByID(id uuid.UUID) (*entity.User, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTokenService ¶
func NewTokenService(ioc di.Container) entity.TokenService
NewTokenService func
Types ¶
type AuthService ¶
type AuthService struct {
// contains filtered or unexported fields
}
AuthService struct
type JWTService ¶
type JWTService struct { Config *config.JWTConfig UserService entity.UserService TokenService entity.TokenService }
JWTService struct
type Service ¶
type Service struct { Auth entity.AuthService User entity.UserService Token entity.TokenService JWT entity.JWTService }
Service struct
type TokenService ¶
type TokenService struct {
// contains filtered or unexported fields
}
TokenService struct
func (TokenService) FindByToken ¶
func (u TokenService) FindByToken(token string) (*entity.Token, error)
FindByToken func
func (TokenService) FindByUserID ¶
FindByUserID func
type UserService ¶
type UserService struct {
// contains filtered or unexported fields
}
UserService struct
func (UserService) ChangePassword ¶
ChangePassword func
func (UserService) FindByEmail ¶
func (u UserService) FindByEmail(email string) (*entity.User, error)
FindByEmail func
Click to show internal directories.
Click to hide internal directories.