queue

package
v0.0.0-...-773ffc7 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2025 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 RedisQueue

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

func NewRedis

func NewRedis(addr, key string, lease time.Duration) (*RedisQueue, error)

func (*RedisQueue) Lease

func (q *RedisQueue) Lease(ctx context.Context) (string, func() error, error)

func (*RedisQueue) Seed

func (q *RedisQueue) Seed(ctx context.Context, host string) error

Seed pushes a host into the queue

Jump to

Keyboard shortcuts

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