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

Interface QueueAPI

src/blobcache/queues.go:95–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93)
94
95type QueueAPI interface {
96 // InspectQueue returns information about a queue.
97 InspectQueue(ctx context.Context, qh Handle) (QueueInfo, error)
98 // Dequeue reads from the queue.
99 // It reads into buf until buf is full or another criteria is fulfilled.
100 Dequeue(ctx context.Context, q Handle, buf []Message, opts DequeueOpts) (int, error)
101 // Insert adds the messages to the end of the queue.
102 Enqueue(ctx context.Context, q Handle, msgs []Message) (*InsertResp, error)
103}
104
105type SubcriptionAPI interface {
106 // SubToVolume causes all changes to a Volume's cell to be

Callers 9

handleQueueMethod · 0.65
InspectQueueMethod · 0.65
InspectQueueMethod · 0.65
QueueAPIFunction · 0.65
ServeBCPMethod · 0.65
InspectQueueMethod · 0.65
QueueAPIFunction · 0.65
TestVolumeSubscribeFunction · 0.65
QueueAPIFunction · 0.65

Implementers 6

Clientsrc/bchttp/client.go
Servicesrc/blobcachecmd/service.go
Servicesrc/bclocal/bclocal.go
Systemsrc/bccore/bccore.go
Servicesrc/bcremote/bcremote.go
Clientsrc/bcipc/client.go

Calls

no outgoing calls

Tested by

no test coverage detected