cmd

package
v0.0.0-...-4bde1a8 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

Types

type Config

type Config struct {
	QoS                 byte   `yaml:"QoS" validate:"required"`
	Topic               string `yaml:"topic" validate:"required"`
	EndPoint            string `yaml:"endpoint" validate:"required"`
	Port                int    `yaml:"port" validate:"required"`
	RootCAFilePath      string `yaml:"root_ca" validate:"required"`
	PrivateKeyFilePath  string `yaml:"private_key" validate:"required"`
	CertificateFilePath string `yaml:"certificate" validate:"required"`
	Event               Event
}

type Event

type Event struct {
	On  string `yaml:"on" validate:"required"`
	Off string `yaml:"off" validate:"required"`
}

Jump to

Keyboard shortcuts

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