Documentation ¶
Index ¶
- func SetupDeviceFetcher(writeDevices chan WriteDevicesOp, ts *tsapi.TSApi)
- func SetupDnsServer(tsServer *tsnet.Server, readDevices chan ReadDevicesOp)
- func SetupHttpServer(tsServer *tsnet.Server, ts *tsapi.TSApi, readDevices chan ReadDevicesOp, ...)
- func Start()
- type DeviceMap
- type DnsHandler
- type ReadDevicesOp
- type WriteDevicesOp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetupDeviceFetcher ¶
func SetupDeviceFetcher( writeDevices chan WriteDevicesOp, ts *tsapi.TSApi, )
Fetch the devices on a regular basis
func SetupDnsServer ¶
func SetupDnsServer(tsServer *tsnet.Server, readDevices chan ReadDevicesOp)
Run the DNS server
func SetupHttpServer ¶ added in v0.6.0
func SetupHttpServer( tsServer *tsnet.Server, ts *tsapi.TSApi, readDevices chan ReadDevicesOp, writeDevices chan WriteDevicesOp, )
Types ¶
type DnsHandler ¶
type DnsHandler func(dns.ResponseWriter, *dns.Msg)
type ReadDevicesOp ¶
type ReadDevicesOp struct {
Response chan DeviceMap
}
type WriteDevicesOp ¶
Click to show internal directories.
Click to hide internal directories.