Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Chunker ¶
type Chunker struct {
// contains filtered or unexported fields
}
Chunker lets you spread items you want to send over multiple chunks. This type is not thread-safe.
type Item ¶
type Item interface{}
Item could be e.g. a commit in an RPC that returns a chunked stream of commits.
type Sender ¶
type Sender interface { // Reset should create a fresh response message. Reset() // Append should append the given item to the slice in the current response message Append(Item) // Send should send the current response message Send() error }
Sender encapsulates a gRPC response stream and the current chunk that's being built.
Reset, Append, [Append...], Send, Reset, Append, [Append...], Send, ...
Click to show internal directories.
Click to hide internal directories.