Add String method to all interfaces

This commit is contained in:
Asim 2015-12-19 21:56:42 +00:00 committed by Vasiliy Tolstov
parent b73ddd8a03
commit 56cf033626

View File

@ -83,6 +83,10 @@ func (n *nbroker) Subscribe(topic string, handler broker.Handler) (broker.Subscr
return &subscriber{s: sub}, nil return &subscriber{s: sub}, nil
} }
func (n *nbroker) String() string {
return "nats"
}
func NewBroker(addrs []string, opt ...broker.Option) broker.Broker { func NewBroker(addrs []string, opt ...broker.Option) broker.Broker {
var cAddrs []string var cAddrs []string
for _, addr := range addrs { for _, addr := range addrs {