redis

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RedisQueueService

type RedisQueueService struct {
	// contains filtered or unexported fields
}

func GetRedisQueueDriver

func GetRedisQueueDriver(cfg *models.Config) (*RedisQueueService, error)

func (*RedisQueueService) AddSubscriber

func (s *RedisQueueService) AddSubscriber(ctx context.Context, userID string) (*models.Subscriber, error)

func (*RedisQueueService) GetSubscriber

func (s *RedisQueueService) GetSubscriber(ctx context.Context, userID string) (*models.Subscriber, error)

func (*RedisQueueService) Publish

func (r *RedisQueueService) Publish(ctx context.Context, chanel string, data interface{}) error

func (*RedisQueueService) RemoveSubscriber

func (s *RedisQueueService) RemoveSubscriber(ctx context.Context, userID string) error

func (*RedisQueueService) Subscribe

func (r *RedisQueueService) Subscribe(ctx context.Context, chanel string) *redis.PubSub

Jump to

Keyboard shortcuts

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