Documentation
¶
Index ¶
- type ApiContext
- func (c *ApiContext) DeleteLight(rw web.ResponseWriter, req *web.Request)
- func (c *ApiContext) Light(rw web.ResponseWriter, req *web.Request)
- func (c *ApiContext) LightState(rw web.ResponseWriter, req *web.Request)
- func (c *ApiContext) Lights(rw web.ResponseWriter, req *web.Request)
- func (c *ApiContext) Setup(rw web.ResponseWriter, req *web.Request)
- type ApiServer
- type DiscoveryRequest
- type DiscoveryResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiContext ¶
type ApiContext struct {
// contains filtered or unexported fields
}
func (*ApiContext) DeleteLight ¶
func (c *ApiContext) DeleteLight(rw web.ResponseWriter, req *web.Request)
func (*ApiContext) Light ¶
func (c *ApiContext) Light(rw web.ResponseWriter, req *web.Request)
func (*ApiContext) LightState ¶
func (c *ApiContext) LightState(rw web.ResponseWriter, req *web.Request)
func (*ApiContext) Lights ¶
func (c *ApiContext) Lights(rw web.ResponseWriter, req *web.Request)
func (*ApiContext) Setup ¶
func (c *ApiContext) Setup(rw web.ResponseWriter, req *web.Request)
type ApiServer ¶
type ApiServer struct { DB *devicedb.DeviceDB DeviceGroup *devicedb.DeviceGroup NS *natsserver.NatsServer // contains filtered or unexported fields }
func New ¶
func New(db *devicedb.DeviceDB, dg *devicedb.DeviceGroup, ns *natsserver.NatsServer, logger *log.Logger) *ApiServer
func (*ApiServer) HandleDiscoveryRequest ¶
func (a *ApiServer) HandleDiscoveryRequest(d *DiscoveryRequest)
type DiscoveryRequest ¶
type DiscoveryResponse ¶
Click to show internal directories.
Click to hide internal directories.