Documentation ¶
Index ¶
Constants ¶
View Source
const ( AuthModeNone = "none" AuthModeUsernamePassword = "usernamepassword" AuthModeCert = "clientcert" AuthModeCA = "cacert" // Name of the keys to look for in secret provider MQTTSecretUsername = "username" MQTTSecretPassword = "password" MQTTSecretClientKey = "clientkey" MQTTSecretClientCert = AuthModeCert MQTTSecretCACert = AuthModeCA )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MqttFactory ¶
type MqttFactory struct {
// contains filtered or unexported fields
}
func NewMqttFactory ¶
func NewMqttFactory(lc logger.LoggingClient, sp interfaces.SecretProvider, mode string, path string, skipVerify bool) MqttFactory
func (MqttFactory) Create ¶
func (factory MqttFactory) Create(opts *mqtt.ClientOptions) (mqtt.Client, error)
Click to show internal directories.
Click to hide internal directories.