queue

package
v0.0.0-...-f7539b2 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Queue

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

func Init

func Init(connStr string, ctx context.Context) *Queue

Init initializes the Redis client and connects to Redis.

func (*Queue) Add

func (q *Queue) Add(listName string, data string) error

Add pushes a string to the head of a Redis list.

Jump to

Keyboard shortcuts

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