MCPcopy
hub / github.com/PeerDB-io/peerdb / QObjectStream

Struct QObjectStream

flow/model/qobject_stream.go:33–40  ·  view source on GitHub ↗

QObjectStream is a stream of HTTP objects represented with URLs that are directly consumable by any HTTP client when combined with authentication headers from the HeaderProvider.

Source from the content-addressed store, hash-verified

31// that are directly consumable by any HTTP client when combined
32// with authentication headers from the HeaderProvider.
33type QObjectStream struct {
34 Objects chan *Object
35 formatLatch *concurrency.Latch[QObjectStreamFormat]
36 schemaLatch *concurrency.Latch[types.QRecordSchema]
37 headerProviderLatch *concurrency.Latch[HeaderProvider]
38 err error
39 closeOnce sync.Once
40}
41
42func NewQObjectStream(buffer int) *QObjectStream {
43 return &QObjectStream{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected