Documentation ¶
Index ¶
- Variables
- func InitNatsBroker(b broker.Broker, options ...broker.Option)
- func InitNsqBroker(b broker.Broker, options ...broker.Option)
- func InitRabbitBroker(b broker.Broker, options ...broker.Option)
- func NewNatsBroker(opts ...broker.Option) broker.Broker
- func NewNsqBroker(opts ...broker.Option) broker.Broker
- func NewRabbitBroker(opts ...broker.Option) broker.Broker
- func NewService() micro.Service
- func Publish(b broker.Broker, topic string, data []byte, opts ...broker.PublishOption) string
- func Run()
- func Subscribe(b broker.Broker, topic string, handle func(broker.Event) error, ...)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( RabbitBroker = rabbitmq.NewBroker() NatsBroker = nats.NewBroker() NsqBroker = nsq.NewBroker() )
View Source
var ( Conf = config.NewConfig() Service = micro.NewService() Web = web.NewService() )
Functions ¶
func NewService ¶
func NewService() micro.Service
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.