Documentation
¶
Index ¶
- func CreateConfig(devices []string, path string) error
- type Device
- func (d *Device) Debug(data *LogData)
- func (d *Device) DiscoveryRequest(m *protocol.DiscoveryRequest)
- func (d *Device) Error(data *LogData)
- func (d *Device) HandleBasicEvent(rw http.ResponseWriter, req *http.Request)
- func (d *Device) PublishEvent(command string)
- func (d *Device) SendDiscoveryResponse(remoteAddress *net.UDPAddr)
- func (d *Device) ServeHTTP(rw http.ResponseWriter, req *http.Request)
- func (d *Device) ServeSettingsXml(rw http.ResponseWriter, req *http.Request)
- func (d *Device) StartServer(vServer *VwegoServer)
- type DeviceEvent
- type LogData
- type VwegoConfig
- type VwegoServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateConfig ¶
Types ¶
type Device ¶
type Device struct { UUID string UU string Name string Port int // contains filtered or unexported fields }
func (*Device) DiscoveryRequest ¶
func (d *Device) DiscoveryRequest(m *protocol.DiscoveryRequest)
func (*Device) HandleBasicEvent ¶
func (d *Device) HandleBasicEvent(rw http.ResponseWriter, req *http.Request)
func (*Device) PublishEvent ¶
func (*Device) SendDiscoveryResponse ¶
func (*Device) ServeSettingsXml ¶
func (d *Device) ServeSettingsXml(rw http.ResponseWriter, req *http.Request)
func (*Device) StartServer ¶
func (d *Device) StartServer(vServer *VwegoServer)
type DeviceEvent ¶
type VwegoConfig ¶
DeviceConfig is the format of the configuration file
func (*VwegoConfig) SaveConfig ¶
func (srv *VwegoConfig) SaveConfig(path string) error
type VwegoServer ¶
type VwegoServer struct { ServerIP string ConfigPath string NatsServer *server.Server EncConn *nats.EncodedConn Config *VwegoConfig }
VwegoServer is the virtual we go server struct
func (*VwegoServer) EncodedConnection ¶
func (s *VwegoServer) EncodedConnection() (ec *nats.EncodedConn, err error)
func (*VwegoServer) ReadConfig ¶
func (s *VwegoServer) ReadConfig() error
func (*VwegoServer) Run ¶
func (s *VwegoServer) Run()
Click to show internal directories.
Click to hide internal directories.