Documentation ¶
Index ¶
- Constants
- type APIHandler
- type APIStat
- type APIStatus
- type Config
- type Device
- type InfluxOptions
- type SensorConfig
- type Server
- func (s *Server) AddHidrawDevice(deviceInfo hidraw.DeviceInfo)
- func (s *Server) GetConfig(_ *http.Request, path ...string) (interface{}, error)
- func (s *Server) GetStats(_ *http.Request, path ...string) (interface{}, error)
- func (s *Server) GetStatus(_ *http.Request, path ...string) (interface{}, error)
- func (self *Server) InfluxWriter(options InfluxOptions) error
- func (s *Server) LoadConfig(filePath string) error
- func (s *Server) MonitorHidraw(monitorChan chan hidraw.MonitorEvent)
- func (s *Server) RemoveHidrawDevice(deviceInfo hidraw.DeviceInfo)
- func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)
- type Stat
Constants ¶
View Source
const INFLUX_PORT = "8086"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Sensors map[string]*SensorConfig
}
type InfluxOptions ¶
func (InfluxOptions) Empty ¶
func (opts InfluxOptions) Empty() bool
type SensorConfig ¶
type SensorConfig struct { ID string // contains filtered or unexported fields }
func (*SensorConfig) String ¶
func (self *SensorConfig) String() string
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) AddHidrawDevice ¶
func (s *Server) AddHidrawDevice(deviceInfo hidraw.DeviceInfo)
func (*Server) InfluxWriter ¶
func (self *Server) InfluxWriter(options InfluxOptions) error
func (*Server) LoadConfig ¶
func (*Server) MonitorHidraw ¶
func (s *Server) MonitorHidraw(monitorChan chan hidraw.MonitorEvent)
func (*Server) RemoveHidrawDevice ¶
func (s *Server) RemoveHidrawDevice(deviceInfo hidraw.DeviceInfo)
Click to show internal directories.
Click to hide internal directories.