Documentation
¶
Index ¶
- func NewBidirectionalEventStream() eventstream.BidirectionalEventStream
- func NewBidirectionalEventStreamUpgrader() eventstream.BidirectionalEventStreamUpgrader
- func NewEventStream() eventstream.EventStream
- func NewEventStreamUpgrader() eventstream.EventStreamUpgrader
- type BidirectionalEventStream
- type BidirectionalEventStreamUpgrader
- type EventStream
- type EventStreamUpgrader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBidirectionalEventStream ¶
func NewBidirectionalEventStream() eventstream.BidirectionalEventStream
NewBidirectionalEventStream returns a no-op BidirectionalEventStream.
func NewBidirectionalEventStreamUpgrader ¶
func NewBidirectionalEventStreamUpgrader() eventstream.BidirectionalEventStreamUpgrader
NewBidirectionalEventStreamUpgrader returns a no-op BidirectionalEventStreamUpgrader.
func NewEventStream ¶
func NewEventStream() eventstream.EventStream
NewEventStream returns a no-op EventStream.
func NewEventStreamUpgrader ¶
func NewEventStreamUpgrader() eventstream.EventStreamUpgrader
NewEventStreamUpgrader returns a no-op EventStreamUpgrader.
Types ¶
type BidirectionalEventStream ¶
type BidirectionalEventStream struct {
EventStream
// contains filtered or unexported fields
}
BidirectionalEventStream is a no-op BidirectionalEventStream.
func (*BidirectionalEventStream) Receive ¶
func (s *BidirectionalEventStream) Receive() <-chan *eventstream.Event
Receive returns a channel that never delivers events.
type BidirectionalEventStreamUpgrader ¶
type BidirectionalEventStreamUpgrader struct{}
BidirectionalEventStreamUpgrader is a no-op BidirectionalEventStreamUpgrader.
func (*BidirectionalEventStreamUpgrader) UpgradeToBidirectionalStream ¶
func (*BidirectionalEventStreamUpgrader) UpgradeToBidirectionalStream(http.ResponseWriter, *http.Request) (eventstream.BidirectionalEventStream, error)
UpgradeToBidirectionalStream returns a no-op BidirectionalEventStream.
type EventStream ¶
type EventStream struct {
// contains filtered or unexported fields
}
EventStream is a no-op EventStream.
func (*EventStream) Done ¶
func (s *EventStream) Done() <-chan struct{}
Done returns a channel that closes when Close is called.
func (*EventStream) Send ¶
func (*EventStream) Send(context.Context, *eventstream.Event) error
Send is a no-op.
type EventStreamUpgrader ¶
type EventStreamUpgrader struct{}
EventStreamUpgrader is a no-op EventStreamUpgrader.
func (*EventStreamUpgrader) UpgradeToEventStream ¶
func (*EventStreamUpgrader) UpgradeToEventStream(http.ResponseWriter, *http.Request) (eventstream.EventStream, error)
UpgradeToEventStream returns a no-op EventStream.