Documentation ¶
Index ¶
- func CallHomeServer(registrar *LocalRegistrar) node.Node
- func InstallRegistrar(reg *LocalRegistrar, dev *device.Local) error
- func RegistrarNode(registrar *LocalRegistrar) node.Node
- type LocalRegistrar
- func (gw *LocalRegistrar) Device(deviceId string) (device.Device, error)
- func (gw *LocalRegistrar) LookupRegistration(deviceId string) (Registration, bool)
- func (gw *LocalRegistrar) OnRegister(l RegisterListener) nodeutil.Subscription
- func (gw *LocalRegistrar) RegisterDevice(deviceId string, address string) error
- func (gw *LocalRegistrar) RegistrationCount() int
- type RegisterListener
- type Registrar
- type Registration
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CallHomeServer ¶
func CallHomeServer(registrar *LocalRegistrar) node.Node
func InstallRegistrar ¶
func InstallRegistrar(reg *LocalRegistrar, dev *device.Local) error
func RegistrarNode ¶
func RegistrarNode(registrar *LocalRegistrar) node.Node
Types ¶
type LocalRegistrar ¶
type LocalRegistrar struct {
// contains filtered or unexported fields
}
func NewLocalRegistrar ¶
func NewLocalRegistrar(proto device.ProtocolHandler) *LocalRegistrar
func (*LocalRegistrar) Device ¶
func (gw *LocalRegistrar) Device(deviceId string) (device.Device, error)
func (*LocalRegistrar) LookupRegistration ¶
func (gw *LocalRegistrar) LookupRegistration(deviceId string) (Registration, bool)
func (*LocalRegistrar) OnRegister ¶
func (gw *LocalRegistrar) OnRegister(l RegisterListener) nodeutil.Subscription
func (*LocalRegistrar) RegisterDevice ¶
func (gw *LocalRegistrar) RegisterDevice(deviceId string, address string) error
func (*LocalRegistrar) RegistrationCount ¶
func (gw *LocalRegistrar) RegistrationCount() int
type RegisterListener ¶
type RegisterListener func(Registration)
type Registrar ¶
type Registrar interface { RegistrationCount() int LookupRegistration(deviceId string) (Registration, bool) RegisterDevice(deviceId string, address string) OnRegister(l RegisterListener) nodeutil.Subscription }
Click to show internal directories.
Click to hide internal directories.