Documentation ¶
Index ¶
- Variables
- type Queue
- 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)
- func (q *Queue) List(ctx context.Context, req *pb.ListRequest) (*pb.ListResponse, error)
- func (q *Queue) Run()
Constants ¶
This section is empty.
Variables ¶
View Source
var (
QUEUE_PREFIX = "gramophile/taskqueue/"
)
Functions ¶
This section is empty.
Types ¶
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) 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 (*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.