add broker args

This commit is contained in:
Asim Aslam 2019-07-07 12:36:14 +01:00
parent 777a203f96
commit 79b03a6825

View File

@ -7,8 +7,8 @@ type Broker interface {
Options() Options Options() Options
Connect() error Connect() error
Disconnect() error Disconnect() error
Publish(string, *Message, ...PublishOption) error Publish(topic string, m *Message, opts ...PublishOption) error
Subscribe(string, Handler, ...SubscribeOption) (Subscriber, error) Subscribe(topic string, h Handler, opts ...SubscribeOption) (Subscriber, error)
String() string String() string
} }