cli

package
v0.0.0-...-eb87487 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 4, 2021 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddDeviceCommand

func AddDeviceCommand() *cli.Command

AddDeviceCommand exposes the command to add a device to be managed by this backend

func ConcatSlices

func ConcatSlices(flags ...[]cli.Flag) []cli.Flag

ConcatSlices concats multiple slices of flags together

func GetApp

func GetApp() *cli.App

GetApp returns the app for returning the cli app

func ListeningServerFlags

func ListeningServerFlags() []cli.Flag

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 MQTTFlags

func MQTTFlags() []cli.Flag

func MQTTTLSConfigFromContext

func MQTTTLSConfigFromContext(context *cli.Context) (*tls.Config, error)

MQTTTLSConfigFromContext extracts from the context the tls configuration to connect to MQTT

func RedisFlags

func RedisFlags() []cli.Flag

RedisFlags returns the redis flag configurations.

func RedisFlagsFromContext

func RedisFlagsFromContext(context *cli.Context) *redis.Options

RedisFlagsFromContext can be used to create the appropiate redis options for the configuration.

func ServerCommand

func ServerCommand() *cli.Command

ServerCommand returns the command for running the server.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL