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: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandAdapter

type CommandAdapter struct {
	Service *as.Service
}

CommandAdapter is an adapter for Hexagonal Architecture Pattern. It is used to communicate with the application layer.

func NewCommandAdapter

func NewCommandAdapter(s *as.Service) CommandAdapter

NewCommandAdapter creates a new *CommandAdapter.

func (CommandAdapter) Log

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

Log sends the given log to the application layer.

type QueryAdapter

type QueryAdapter struct {
	Service *as.Service
}

QueryAdapter is an adapter for Hexagonal Architecture Pattern. It is used to communicate with the application layer.

func NewQueryAdapter

func NewQueryAdapter(s *as.Service) QueryAdapter

NewQueryAdapter creates a new *QueryAdapter.

func (QueryAdapter) GetLogsByFilter

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

GetLogsByFilter returns the logs that match the given filter.

Jump to

Keyboard shortcuts

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