Documentation ¶
Index ¶
- func AddDeviceCommand() *cli.Command
- func ConcatSlices(flags ...[]cli.Flag) []cli.Flag
- func GetApp() *cli.App
- func ListeningServerFlags() []cli.Flag
- func MQTTConfigFromContext(context *cli.Context) (*mqtt.ClientOptions, error)
- func MQTTFlags() []cli.Flag
- func MQTTTLSConfigFromContext(context *cli.Context) (*tls.Config, error)
- func RedisFlags() []cli.Flag
- func RedisFlagsFromContext(context *cli.Context) *redis.Options
- func ServerCommand() *cli.Command
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddDeviceCommand ¶
AddDeviceCommand exposes the command to add a device to be managed by this backend
func ConcatSlices ¶
ConcatSlices concats multiple slices of flags together
func ListeningServerFlags ¶
ListeningServerFlags returns the flags for listening ports
func MQTTConfigFromContext ¶
func MQTTConfigFromContext(context *cli.Context) (*mqtt.ClientOptions, error)
MQTTConfigFromContext extracts the mqtt configuration from the passed cli context's options.
func MQTTTLSConfigFromContext ¶
MQTTTLSConfigFromContext extracts from the context the tls configuration to connect to MQTT
func RedisFlagsFromContext ¶
RedisFlagsFromContext can be used to create the appropiate redis options for the configuration.
func ServerCommand ¶
ServerCommand returns the command for running the server.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.