Documentation
¶
Index ¶
- Constants
- type Exception
- type Handler
- func (h *Handler) AsyncProcess(ctx context.Context, topic string, numWorkers int, pf ProcessFunc) error
- func (h *Handler) Close() (err error)
- func (h *Handler) GetExceptionChan() <-chan Exception
- func (h *Handler) Publish(topic string, qos byte, retained bool, payload any, timeout time.Duration) (err error)
- type Opts
- type ProcessFunc
Constants ¶
View Source
const TwoHours = 119
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func (*Handler) AsyncProcess ¶
func (*Handler) GetExceptionChan ¶
type Opts ¶
type Opts struct {
Broker string `mapstructure:"broker" validate:"required"`
Port int `mapstructure:"port" validate:"required"`
ClientId string `mapstructure:"clientid" validate:"required"`
Username string `mapstructure:"username" validate:"required"`
Password string `mapstructure:"password" validate:"required"`
}
type ProcessFunc ¶
Click to show internal directories.
Click to hide internal directories.