MCPcopy
hub / github.com/wavetermdev/waveterm / CreateStreamReader

Method CreateStreamReader

pkg/streamclient/streambroker.go:54–56  ·  view source on GitHub ↗
(readerRoute string, writerRoute string, rwnd int64)

Source from the content-addressed store, hash-verified

52}
53
54func (b *Broker) CreateStreamReader(readerRoute string, writerRoute string, rwnd int64) (*Reader, *wshrpc.StreamMeta) {
55 return b.CreateStreamReaderWithSeq(readerRoute, writerRoute, rwnd, 0)
56}
57
58func (b *Broker) CreateStreamReaderWithSeq(readerRoute string, writerRoute string, rwnd int64, startSeq int64) (*Reader, *wshrpc.StreamMeta) {
59 b.lock.Lock()

Callers 15

runTestFunction · 0.95
RemoteFileCopyCommandMethod · 0.80
ReadFunction · 0.80
StartJobFunction · 0.80
TestBrokerBasicReadWriteFunction · 0.80
TestBrokerEOFFunction · 0.80
TestBrokerFlowControlFunction · 0.80
TestBrokerErrorFunction · 0.80
TestBrokerCancelFunction · 0.80
TestBrokerMultipleWritesFunction · 0.80
TestBrokerCleanupFunction · 0.80

Calls 1

Tested by 7

TestBrokerBasicReadWriteFunction · 0.64
TestBrokerEOFFunction · 0.64
TestBrokerFlowControlFunction · 0.64
TestBrokerErrorFunction · 0.64
TestBrokerCancelFunction · 0.64
TestBrokerMultipleWritesFunction · 0.64
TestBrokerCleanupFunction · 0.64