application

package
v0.0.0-...-94051e6 Latest Latest
Warning

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

Go to latest
Published: May 31, 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 EBusPort

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

	// Listen listens to the event bus and calls the given callBack function for each received user.
	Listen(ctx context.Context, channelName string, callBack func(channelName string, user me.User))
}

EBusPort is a port for Hexagonal Architecture Pattern. It is used to communicate with the event bus.

Jump to

Keyboard shortcuts

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