Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HandlerFunc ¶
func (HandlerFunc) HandlerMessage ¶
func (h HandlerFunc) HandlerMessage(message *Message) error
HandlerMessage implements the Handler interface
type MQ ¶
type MQ interface {
Pub(topic string, msg any) MQ // Pub any message`
MultiPub(topic string, msgs ...any) MQ // MultiPub ...any message
Sub(topic, channel string, handler HandlerFunc) MQ // consumer Sub func to handle your work
Stop(topic, channel string) MQ // consumer Stop
Error() error
}
MQ message platform
Click to show internal directories.
Click to hide internal directories.