application

package
v0.0.0-...-58cf2e1 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 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 RedisPort

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

	// ConsumeChannel subscribes the given channel to Redis and returns *redis.PubSub
	ConsumeChannel(ctx context.Context, channelName string) *redis.PubSub
}

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