Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StreamTest ¶
func StreamTest(t *testing.T, c StreamPairCreator)
Types ¶
type BrokenStream ¶
type BrokenStream struct{}
BrokenStream means that the stream broke before we got the trailer. In practice this means that there was an interruption to the stream, meaning the results are not complete-- but all previously received results before the erorr are still valid they just don't constitute the full set of results
func (BrokenStream) Error ¶
func (b BrokenStream) Error() string
type ClientStream ¶
type ResultChunk ¶
type ResultChunk struct { Results []record.Record `json:"results"` Error string `json:"error,omitempty"` }
A chunk of results on the wire
type ServerStream ¶
type StreamPairCreator ¶
type StreamPairCreator func(context.Context) (ServerStream, ClientStream)
Click to show internal directories.
Click to hide internal directories.