pkgsitegolang.org/x/pkgsite/internal/queue/gcpqueue Index | Files

package gcpqueue

import "golang.org/x/pkgsite/internal/queue/gcpqueue"

Package gcpqueue provides a GCP queue implementation that can be used for asynchronous scheduling of fetch actions.

Index

Functions

func New

func New(ctx context.Context, cfg *config.Config, queueName string, numWorkers int, expGetter middleware.ExperimentGetter, processFunc queue.InMemoryProcessFunc) (queue.Queue, error)

New creates a new Queue with name queueName based on the configuration in cfg. When running locally, Queue uses numWorkers concurrent workers.

Source Files

queue.go

Version
v0.0.0-20250218150137-224a1368cf02 (latest)
Published
Feb 18, 2025
Platform
linux/amd64
Imports
20 packages
Last checked
2 months ago

Tools for package owners.