Documentation ¶
Overview ¶
Package awsiotprotocol is internal implementation of awsiotdev package. It implements MQTT connection type loader.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockProtocol ¶
type MockProtocol struct { }
MockProtocol implements Protocol interface without actual connection. This is for testing.
func (MockProtocol) NewClientOptions ¶
func (s MockProtocol) NewClientOptions(opt *Config) (*mqtt.ClientOptions, error)
NewClientOptions returns MQTT connection options.
type Mqtts ¶
type Mqtts struct { }
Mqtts implements Protocol interface for MQTT over TLS using x.509 certifications.
func (Mqtts) NewClientOptions ¶
func (s Mqtts) NewClientOptions(opt *Config) (*mqtt.ClientOptions, error)
NewClientOptions returns MQTT connection options.
type Protocol ¶
type Protocol interface { Name() string NewClientOptions(opt *Config) (*mqtt.ClientOptions, error) }
Protocol is the interface to describe MQTT connection type.
type Wss ¶
type Wss struct { }
Wss implements Protocol interface for MQTT over Websocket.
func (Wss) NewClientOptions ¶
func (s Wss) NewClientOptions(opt *Config) (*mqtt.ClientOptions, error)
NewClientOptions returns MQTT connection options.
Click to show internal directories.
Click to hide internal directories.