Versions in this module Expand all Collapse all v0 v0.1.1 Jun 7, 2024 v0.1.0 Apr 12, 2024 Changes in this version + func Connect(ctx context.Context, config Config, logger *slog.Logger) (*paho.Client, chan *paho.Publish, error) + func Request(ctx context.Context, client *paho.Client, config Config, payload []byte, ...) ([]byte, error) + type Config struct + ClientID string + Password string + PublishTo string + Qos int + Retained bool + Server string + SubscribeTo string + Timeout time.Duration + Username string + func GetConfig(args []string) (Config, bool, error)