application

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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_ebus.EBusPort
}

Service is an application service. It manages the business logic of the application.

func NewService

func NewService(domainService *ds.Service, dbRepository ip_repo.DbPort, eBus ip_ebus.EBusPort) *Service

NewService creates a new *Service.

func (*Service) EventListen

func (a *Service) EventListen() *Service

This is the event listener handler of the application layer.

func (*Service) EventListenerCallBack

func (a *Service) EventListenerCallBack(channelName string, logData me.LogData)

This is a call-back function of the event listener handler of the application layer.

func (*Service) GetLogsByFilter

func (a *Service) GetLogsByFilter(ctx context.Context, logDataFilter me.LogDataFilter) ([]me.LogData, error)

GetLogsByFilter returns the logs that match the given filter.

func (*Service) Log

func (a *Service) Log(ctx context.Context, logData me.LogData)

Log sends the given log to the repository of the infrastructure layer.

Jump to

Keyboard shortcuts

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