options

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BrokerOpts

type BrokerOpts struct {
	Addr     string    `mapstructure:"addr"`
	Username string    `mapstructure:"username"`
	Password string    `mapstructure:"password"`
	ID       string    `mapstructure:"id"`
	Topic    TopicOpts `mapstructure:"topic"`
}

type LogOpts

type LogOpts struct {
	Debug bool `mapstructure:"debug"`
}

type Opts

type Opts struct {
	RunOpts
	Log LogOpts `mapstructure:"log"`
}

type RunOpts

type RunOpts struct {
	Broker BrokerOpts `mapstructure:"broker"`
	Scan   ScanOpts   `mapstructure:"scan"`
	UI     UIOpts     `mapstructure:"ui"`
}

type ScanOpts

type ScanOpts struct {
	Duration  time.Duration `mapstructure:"duration"`
	Interval  time.Duration `mapstructure:"interval"`
	CacheSize uint          `mapstructure:"cache-size"`
}

type TopicOpts

type TopicOpts struct {
	Pub string `mapstructure:"pub"`
	Sub string `mapstructure:"sub"`
	LWT string `mapstructure:"lwt"`
}

type UIOpts

type UIOpts struct {
	Enabled bool   `mapstructure:"enabled"`
	Addr    string `mapstructure:"addr"`
}

Jump to

Keyboard shortcuts

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