27 lines
497 B
Go
27 lines
497 B
Go
//go:generate ../../../tools/readme_config_includer/generator
|
|
package wireless
|
|
|
|
import (
|
|
_ "embed"
|
|
|
|
"github.com/influxdata/telegraf"
|
|
"github.com/influxdata/telegraf/plugins/inputs"
|
|
)
|
|
|
|
//go:embed sample.conf
|
|
var sampleConfig string
|
|
|
|
type Wireless struct {
|
|
HostProc string `toml:"host_proc"`
|
|
Log telegraf.Logger `toml:"-"`
|
|
}
|
|
|
|
func (*Wireless) SampleConfig() string {
|
|
return sampleConfig
|
|
}
|
|
|
|
func init() {
|
|
inputs.Add("wireless", func() telegraf.Input {
|
|
return &Wireless{}
|
|
})
|
|
}
|