Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Subscribe ¶
func Subscribe(url, topic string, opt Options) ( messages <-chan *types.Any, errors <-chan error, done chan<- struct{}, err error, )
Subscribe subscribes to a topic hosted at given url. It returns a channel of incoming events and errors as well as done which will close the connection and exit the subscriber.
Types ¶
Click to show internal directories.
Click to hide internal directories.