Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ResponseStream ¶
ResponseStream is an interface that allows Server Push to a Service.
type StreamWriter ¶
StreamWriter operates a given stream to send a received WatchEvent to the frontend.
func NewStreamWriter ¶
func NewStreamWriter(stream ResponseStream) *StreamWriter
func (*StreamWriter) Write ¶
func (sw *StreamWriter) Write(we *WatchEvent) error
Write encodes the an received WatchEvent and push it to the frontend.
type WatchEvent ¶
type WatchEvent struct { Kind ResourceKind EventType watch.EventType // Obj is an object included in the event notified by the watched apiserver. Obj interface{} }
WatchEvent represents an event notified by the watched apiserver.
Directories ¶
Path | Synopsis |
---|---|
Package mock_streamwriter is a generated GoMock package.
|
Package mock_streamwriter is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.