Documentation ¶
Index ¶
- Variables
- func AddPrefix(s string)
- func AddTestPrefix(s *string)
- func BeforeStart(f ...func())
- func CommonProcess()
- 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 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(s string)
- func SetVersion(version string)
- func Subscribe(b broker.Broker, topic string, handle func(broker.Event) error, ...)
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func AddTestPrefix ¶ added in v1.19.5
func AddTestPrefix(s *string)
func BeforeStart ¶ added in v1.18.8
func BeforeStart(f ...func())
func CommonProcess ¶ added in v1.18.7
func CommonProcess()
func RunProcess ¶ added in v1.17.5
func RunProcess(process func(context.Context, context.CancelFunc) error)
func SetVersion ¶ added in v1.18.7
func SetVersion(version string)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.