application

package
v0.0.0-...-436674b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 9, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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) Log

func (a *Service) Log(ctx context.Context, logData *pb.LogData) (*pb.LoggingResult, error)

Log sends the given log to the logging micro service.

func (*Service) Login

func (a *Service) Login(ctx context.Context, loginRequest mo.LoginRequest) (mo.Token, error)

Login generates an authentication token if the given login request values are valid.

func (*Service) Logout

func (a *Service) Logout(ctx context.Context, token mo.Token) error

Logout clears some footprints for the user.

func (*Service) Refresh

func (a *Service) Refresh(ctx context.Context, token mo.Token) (mo.Token, error)

Refresh regenerate an authentication token.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL