Documentation ¶
Index ¶
- type Service
- func (a *Service) CheckUserPassword(ctx context.Context, loginRequest mo.LoginRequest) (*me.User, error)
- func (a *Service) Log(ctx context.Context, logData *pb.LogData) (*pb.LoggingResult, error)
- func (a *Service) Login(ctx context.Context, loginRequest mo.LoginRequest) (mo.Token, error)
- func (a *Service) Logout(ctx context.Context, token mo.Token) error
- func (a *Service) Refresh(ctx context.Context, token mo.Token) (mo.Token, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct { *ds.Service ip_repo.DbPort ip_repo.RedisPort ip_ebus.EBusPort ip_service.ServicePort }
Service is an application service. It manages the business logic of the application.
func NewService ¶
func NewService(domainService *ds.Service, dbRepository ip_repo.DbPort, redisRepository ip_repo.RedisPort, eBus ip_ebus.EBusPort, internalService ip_service.ServicePort) *Service
NewService creates a new *Service.
func (*Service) CheckUserPassword ¶
func (a *Service) CheckUserPassword(ctx context.Context, loginRequest mo.LoginRequest) (*me.User, error)
CheckUserPassword checks the given user's password in the user service.
func (*Service) Login ¶
Login generates an authentication token if the given login request values are valid.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.