MCPcopy Create free account
hub / github.com/blobcache/blobcache / Enqueue

Method Enqueue

src/bccore/backend.go:58–58  ·  view source on GitHub ↗

Enqueue adds messages to the Queue. It returns the number of messages accepted.

(ctx context.Context, msgs []blobcache.Message)

Source from the content-addressed store, hash-verified

56 // Enqueue adds messages to the Queue.
57 // It returns the number of messages accepted.
58 Enqueue(ctx context.Context, msgs []blobcache.Message) (int, error)
59 // Dequeue removes messages from the Queue.
60 Dequeue(ctx context.Context, buf []blobcache.Message, opts blobcache.DequeueOpts) (int, error)
61 // Down is called when the queue has no remaining handles

Callers 7

handleQueueMethod · 0.65
EnqueueMethod · 0.65
EnqueueMethod · 0.65
ServeBCPMethod · 0.65
EnqueueMethod · 0.65
EnqueueMethod · 0.65
SubToVolumeMethod · 0.65

Implementers 2

Queuesrc/internal/backend/memory/queue.go
Queuesrc/internal/backend/remotebe/queue.go

Calls

no outgoing calls

Tested by

no test coverage detected