Versions in this module Expand all Collapse all v0 v0.0.4 Sep 17, 2023 v0.0.3 Sep 17, 2023 v0.0.2 Sep 4, 2023 Changes in this version + const DefaultEvents + const DefaultPort + const PluginName + func NewInputEvent(name, id string, event *Event) + func NewOutputEvent(name, id string, event *Event) + func UpdateInput(config *Input) + func UpdateInputCounter(plugin, label string, values ...int64) + func UpdateOutput(config *Output) + func UpdateOutputCounter(plugin, label string, values ...int64) + type Client struct + Controller string + DeviceMAC string + IP string + Last time.Time + MAC string + Name string + Rx int64 + Since time.Time + SiteID string + Source string + Tx int64 + Type string + type Clients []*Client + func (c Clients) Filter(siteid string) (clients []*Client) + type Config struct + Accounts accounts + Enable bool + HTMLPath string + MaxEvents uint + Port uint + SSLCrtPath string + SSLKeyPath string + type Device struct + Clients int + Config any + Controller string + IP string + MAC string + Model string + Name string + SiteID string + Source string + Type string + Uptime int + Version string + type Devices []*Device + func (c Devices) Filter(siteid string) (devices []*Device) + type Event struct + Msg string + Tags map[string]string + Ts time.Time + type EventGroup struct + Events []*Event + Latest time.Time + type Events map[string]*EventGroup + func (e Events) Groups(prefix string) (groups []string) + type Input struct + Clients Clients + Config any + Counter map[string]int64 + Devices Devices + Events Events + Name string + Sites Sites + type Output struct + Config any + Counter map[string]int64 + Events Events + Name string + type ResponseWriter struct + Code int + Error string + Size int + Start time.Time + Writer http.ResponseWriter + func (w *ResponseWriter) Header() http.Header + func (w *ResponseWriter) Write(b []byte) (int, error) + func (w *ResponseWriter) WriteHeader(code int) + type Server struct + Collect poller.Collect + func (s *Server) DebugOutput() (bool, error) + func (s *Server) Enabled() bool + func (s *Server) LogDebugf(msg string, v ...any) + func (s *Server) LogErrorf(msg string, v ...any) + func (s *Server) Logf(msg string, v ...any) + func (s *Server) Run(c poller.Collect) error + func (s *Server) Start() (err error) + type Site struct + Controller string + Desc string + ID string + Name string + Source string + type Sites []*Site