services

package
v1.5.3 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRedisClient

func NewRedisClient(host, password string, database, port int) *redis.Client

Types

type QueueService

type QueueService interface {
	Push(context.Context, []byte) error
	Pop(context.Context) ([]byte, error)
}

func NewRedisQueueService

func NewRedisQueueService(client *redis.Client, queueName string) QueueService

type RedisQueueService

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

func (*RedisQueueService) Pop

func (r *RedisQueueService) Pop(ctx context.Context) ([]byte, error)

func (*RedisQueueService) Push

func (r *RedisQueueService) Push(ctx context.Context, value []byte) error

Jump to

Keyboard shortcuts

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