Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collector ¶
type Collector struct {
*collector.BaseCollector
}
func NewCollector ¶
func NewCollector() *Collector
type Rule ¶
type Rule struct { Address string `` /* 165-byte string literal not displayed */ Protocol string `label:"Protocol" json:"protocol" description:"Protocol, must be tcp or udp" example:"tcp"` Timeout int `label:"Timeout" json:"timeout" default:"1" description:"Set timeout"` ReadTimeout int `label:"ReadTimeout" json:"read_timeout" default:"1" description:"Set read timeout (only used if expecting a response)"` Send string `label:"Send" json:"send" description:"string sent to the server, udp required" example:"hello"` Expect string `label:"Expect" json:"expect" description:"expected string in answer, udp required" example:"hello"` }
Click to show internal directories.
Click to hide internal directories.