apiserver

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 1, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

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 (*ApiServer) HandleDiscoveryRequest

func (a *ApiServer) HandleDiscoveryRequest(d *DiscoveryRequest)

func (*ApiServer) Run

func (a *ApiServer) Run(ctx context.Context)

type DiscoveryRequest

type DiscoveryRequest struct {
	Remote string
	Packet string
}

type DiscoveryResponse

type DiscoveryResponse struct {
	Remote string
	Packet string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL