Documentation ¶
Index ¶
Constants ¶
View Source
const ( TopicSyntax = "(?P<protocol>mqtt|kfka)://(?P<host>[a-z0-9A-Z\\-]+(\\.[a-z0-9A-Z\\-]+)*)(:*(?P<port>[0-9]+))(?P<path>/.*)" BrokerSyntax = "(?P<protocol>mqtt|kfka)://(?P<host>[a-z0-9A-Z\\-]+(\\.[a-z0-9A-Z\\-]+)*)(:*(?P<port>[0-9]+))$" )
Variables ¶
View Source
var ( ErrNotSupported = errors.New("not-supported") TopicRegex = regexp.MustCompile(TopicSyntax) BrokerRegex = regexp.MustCompile(BrokerSyntax) )
Functions ¶
Types ¶
type PubSub ¶
type PubSub interface { Publisher Subscriber Close() }
type Subscriber ¶
Click to show internal directories.
Click to hide internal directories.