Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IMessageBroker ¶
type IMessageBroker interface {
Publish(ctx context.Context, channel string, payload interface{}) error
Subscribe(ctx context.Context, channel string, callback func(channel string, payload string)) func() error
}
func GetBroker ¶
func GetBroker() (IMessageBroker, error)
func Init ¶
func Init() (IMessageBroker, error)
Click to show internal directories.
Click to hide internal directories.