queuelogic

package
v0.1036.0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: Apache-2.0 Imports: 26 Imported by: 2

Documentation

Index

Constants

View Source
const (
	CollectionRefresh = time.Hour * 24 * 7 // Refresh the full collection once a week
)

Variables

View Source
var (
	QUEUE_PREFIX    = "gramophile/taskqueue/"
	DL_QUEUE_PREFIX = "gramophile/dlq/"
)

Functions

This section is empty.

Types

type DownloaderBridge added in v0.507.0

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

func (*DownloaderBridge) Download added in v0.507.0

func (d *DownloaderBridge) Download(ctx context.Context, url string) (string, error)

type Queue added in v0.317.0

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

func (*Queue) Drain added in v0.517.0

func (q *Queue) Drain(ctx context.Context, req *pb.DrainRequest) (*pb.DrainResponse, error)

func (*Queue) Enqueue added in v0.317.0

func (q *Queue) Enqueue(ctx context.Context, req *pb.EnqueueRequest) (*pb.EnqueueResponse, error)

func (*Queue) Execute added in v0.317.0

func (q *Queue) Execute(ctx context.Context, req *pb.EnqueueRequest) (*pb.EnqueueResponse, error)

func (*Queue) ExecuteInternal added in v0.317.0

func (q *Queue) ExecuteInternal(ctx context.Context, d discogs.Discogs, u *pb.StoredUser, entry *pb.QueueElement) error

func (*Queue) FlushQueue added in v0.317.0

func (q *Queue) FlushQueue(ctx context.Context) error

func (*Queue) List added in v0.317.0

func (q *Queue) List(ctx context.Context, req *pb.ListRequest) (*pb.ListResponse, error)

func (*Queue) Run added in v0.317.0

func (q *Queue) Run()

Jump to

Keyboard shortcuts

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