MCPcopy
hub / github.com/golang/tools / Reader

Interface Reader

internal/jsonrpc2_v2/frame.go:23–26  ·  view source on GitHub ↗

Reader abstracts the transport mechanics from the JSON RPC protocol. A Conn reads messages from the reader it was provided on construction, and assumes that each call to Read fully transfers a single message, or returns an error. A reader is not safe for concurrent use, it is expected it will be use

Source from the content-addressed store, hash-verified

21// A reader is not safe for concurrent use, it is expected it will be used by
22// a single Conn in a safe manner.
23type Reader interface {
24 // Read gets the next message from the stream.
25 Read(context.Context) (Message, error)
26}
27
28// Writer abstracts the transport mechanics from the JSON RPC protocol.
29// A Conn writes messages using the writer it was provided on construction,

Callers 3

readIndexFromFunction · 0.95
readIncomingMethod · 0.65
ReadMethod · 0.65

Implementers 10

loggingStreamgopls/internal/protocol/log.go
fakeConngopls/internal/util/fakenet/conn.go
Tgo/internal/gccgoimporter/testdata/esc
rawStreaminternal/jsonrpc2/stream.go
headerStreaminternal/jsonrpc2/stream.go
idleListenerConninternal/jsonrpc2_v2/serve.go
rawReaderinternal/jsonrpc2_v2/frame.go
headerReaderinternal/jsonrpc2_v2/frame.go
openFiletxtar/fs.go
openDirtxtar/fs.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…