package
Version:
v0.0.0-...-9a8ef1a
Opens a new window with list of versions in this module.
Published: Jun 10, 2018
License: GPL-3.0
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Registers an SSE stream with the given router and Group.
func (g *Group) Publish(event interface{})
Publishs an event to the feed.
func (g *Group) Register() chan interface{}
Registers a new client to the feed.
func (g *Group) Unregister(ch chan interface{})
Unregisters a client from the feed.
As a side effect the clients channel gets closed.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.