Documentation ¶
Index ¶
- Constants
- Variables
- type DownloaderBridge
- type Queue
- func (q *Queue) Drain(ctx context.Context, req *pb.DrainRequest) (*pb.DrainResponse, error)
- func (q *Queue) Enqueue(ctx context.Context, req *pb.EnqueueRequest) (*pb.EnqueueResponse, error)
- func (q *Queue) Execute(ctx context.Context, req *pb.EnqueueRequest) (*pb.EnqueueResponse, error)
- func (q *Queue) ExecuteInternal(ctx context.Context, d discogs.Discogs, u *pb.StoredUser, ...) error
- func (q *Queue) FlushQueue(ctx context.Context) error
- func (q *Queue) List(ctx context.Context, req *pb.ListRequest) (*pb.ListResponse, error)
- func (q *Queue) Run()
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
}
type Queue ¶ added in v0.317.0
type Queue struct {
// contains filtered or unexported fields
}
func GetQueue ¶
func GetQueue(r rstore_client.RStoreClient, b *background.BackgroundRunner, d discogs.Discogs, db db.Database) *Queue
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) List ¶ added in v0.317.0
func (q *Queue) List(ctx context.Context, req *pb.ListRequest) (*pb.ListResponse, error)
Click to show internal directories.
Click to hide internal directories.