commands

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct {
	Name     string
	Help     string
	ArgsHelp string
	Func     func([]string)
}

Command defines a E4 Client command

func ExitCommand

func ExitCommand(ui tui.UI) *Command

ExitCommand exit the program

func PrintKeyCommand

func PrintKeyCommand(l logger.Logger, isPubKeyMode bool) *Command

PrintKeyCommand print out a hex string key derived from a password

func SendProtectedMessageCommand

func SendProtectedMessageCommand(e4Client e4.Client, mqttClient mqtt.Client, l logger.Logger) *Command

SendProtectedMessageCommand creates a command to send a protected message

func SendUnprotectedMessageCommand

func SendUnprotectedMessageCommand(e4Client e4.Client, mqttClient mqtt.Client, l logger.Logger) *Command

SendUnprotectedMessageCommand creates a command to send an unprotected message

func SubscribeTopicCommand

func SubscribeTopicCommand(e4Client e4.Client, mqttClient mqtt.Client, l logger.Logger) *Command

SubscribeTopicCommand creates a command to subscribe to MQTT topics

func UnsubscribeTopicCommand

func UnsubscribeTopicCommand(e4Client e4.Client, mqttClient mqtt.Client, l logger.Logger) *Command

UnsubscribeTopicCommand creates a command to unsubscribe from MQTT topics

Jump to

Keyboard shortcuts

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