application

package
v0.0.0-...-165d855 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 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 DbPort

type DbPort interface {
	// SetLogger sets logging call-back function
	SetLogger(LogFunc func(ctx context.Context, logData *pb_logging.LogData) (*pb_logging.LoggingResult, error))

	// GetDlrsByFilter returns the dlrs that match the given filter.
	GetDlrsByFilter(ctx context.Context, dlrFilter me.DlrFilter) (me.Dlrs, error)

	// SaveDlr insert a new dlr or update the existing one in the database.
	SaveDlr(ctx context.Context, dlr me.Dlr) (me.Dlr, error)

	// DeleteDlr soft-deletes the given dlr in the database.
	DeleteDlr(ctx context.Context, dlr me.Dlr) (me.Dlr, error)
}

DbPort is a port for Hexagonal Architecture Pattern. It is used to communicate with the database.

type RedisPort

type RedisPort interface {
	// SetLogger sets logging call-back function
	SetLogger(LogFunc func(ctx context.Context, logData *pb_logging.LogData) (*pb_logging.LoggingResult, error))
}

RedisPort is a port for Hexagonal Architecture Pattern. It is used to communicate with the redis.

Jump to

Keyboard shortcuts

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