Documentation ¶
Index ¶
- Variables
- func InitNatsBroker(b broker.Broker, options ...broker.Option)
- func InitNsqBroker(b broker.Broker, options ...broker.Option)
- func InitProcess()
- 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 RunProcess(process func(context.Context, context.CancelFunc) error)
- func RunWeb()
- func SetName(name string)
- func Subscribe(b broker.Broker, topic string, handle func(broker.Event) error, ...)
- type Option
- type Options
Constants ¶
This section is empty.
Variables ¶
View Source
var ( RabbitBroker = rabbitmq.NewBroker() NatsBroker = nats.NewBroker() NsqBroker = nsq.NewBroker() )
View Source
var ( Version = "v1.17.5" Conf = config.NewConfig() Service = micro.NewService() Web = web.NewService() )
Functions ¶
func InitProcess ¶ added in v1.17.5
func InitProcess()
func NewService ¶
func NewService() micro.Service
func RunProcess ¶ added in v1.17.5
func RunProcess(process func(context.Context, context.CancelFunc) error)
Types ¶
Click to show internal directories.
Click to hide internal directories.