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.
Click to show internal directories.
Click to hide internal directories.