Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventServer ¶
type EventServer struct {
// contains filtered or unexported fields
}
func NewEventServer ¶
func NewEventServer() *EventServer
func (*EventServer) Create ¶
func (e *EventServer) Create(name string)
func (*EventServer) ServeHTTP ¶
func (e *EventServer) ServeHTTP(w http.ResponseWriter, r *http.Request)
type Subscriber ¶
type Subscriber struct {
// contains filtered or unexported fields
}
func NewSubscriber ¶
func NewSubscriber() Subscriber
func (Subscriber) Close ¶
func (s Subscriber) Close()
func (Subscriber) Push ¶
func (s Subscriber) Push(event Event) error
func (Subscriber) WriteEvents ¶
func (s Subscriber) WriteEvents(w http.ResponseWriter) error
type Topic ¶
type Topic struct {
// contains filtered or unexported fields
}
func (*Topic) Subscribe ¶
func (t *Topic) Subscribe(sub Subscriber)
func (*Topic) Unsubscribe ¶
func (t *Topic) Unsubscribe(ctx context.Context, sub Subscriber)
Click to show internal directories.
Click to hide internal directories.