infrastructure

package
v0.0.0-...-436674b Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Log

Log is the default log function

Types

type EBusAdapter

type EBusAdapter struct {
	Log func(ctx context.Context, logData *pb_logging.LogData) (*pb_logging.LoggingResult, error)
	// contains filtered or unexported fields
}

func NewEBusAdapter

func NewEBusAdapter(redisClient *tredis.RedisClient) EBusAdapter

func (EBusAdapter) Listen

func (a EBusAdapter) Listen(ctx context.Context, channelName string, callBack func(channelName string, user me.User))

Listen listens to the redis messaging queue and calls the given callBack function for each received user.

func (*EBusAdapter) SetLogger

func (a *EBusAdapter) SetLogger(LoggerFunc func(ctx context.Context, logData *pb_logging.LogData) (*pb_logging.LoggingResult, error))

SetLogger sets logging call-back function

Jump to

Keyboard shortcuts

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