Documentation
¶
Index ¶
- type Config
- type Handler
- type MQAgent
- func (agent *MQAgent) Exit()
- func (agent *MQAgent) Publish(topic string, header map[string]string, msg []byte, opts ...mq.PublishOption) error
- func (agent *MQAgent) Subscribe(group string, h Handler, topics []string) error
- func (agent *MQAgent) SubscribeWithStrategyOfRetry(group string, h Handler, topics []string, retryNum int) error
- func (agent *MQAgent) SubscribeWithStrategyOfSendBack(group string, h Handler, topics []string) error
- type Redis
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Address string `json:"address" required:"true"`
Version string `json:"version"` // e.g 2.1.0
MQCert string `json:"mq_cert"`
OTEL bool `json:"otel"` // Whether otel tracing is enabled
Username string `json:"user_name"`
Password string `json:"password"`
Algorithm string `json:"algorithm"`
SkipCertVerify bool `json:"skip_cert_verify"`
}
type MQAgent ¶
type MQAgent struct {
// contains filtered or unexported fields
}
func NewMQAgent ¶ added in v1.0.1
func (*MQAgent) SubscribeWithStrategyOfRetry ¶
Click to show internal directories.
Click to hide internal directories.