application

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandPort

type CommandPort interface {
	// Log sends the given log to the application layer.
	Log(ctx context.Context, logData me.LogData)
}

CommandPort is a port for Hexagonal Architecture Pattern. It is used to communicate with the application layer.

type QueryPort

type QueryPort interface {
	// GetLogsByFilter returns the logs that match the given filter.
	GetLogsByFilter(ctx context.Context, logDataFilter me.LogDataFilter) ([]me.LogData, error)
}

QueryPort is a port for Hexagonal Architecture Pattern. It is used to communicate with the application layer.

Jump to

Keyboard shortcuts

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