Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context interface { // Close closes the stream. The stream channel will be closed and resources used by the // stream will be released. Close() }
Context is a stream context
func NewCancelContext ¶
func NewCancelContext(cancel context.CancelFunc) Context
NewCancelContext creates a new stream context from a context CancelFunc
func NewContext ¶
NewContext creates a new context with a close function
type Event ¶
type Event struct { // Type is the stream event type Type EventType // Object is the event object Object interface{} }
Event is a stream event
Click to show internal directories.
Click to hide internal directories.