callhome

package
v0.0.0-...-ebda94a Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CallHomeNode

func CallHomeNode(ch *CallHome) node.Node

func Install

func Install(d *device.Local) error

Install creates and registered Call Home support into local device.

Types

type CallHome

type CallHome struct {
	Registered bool

	LastErr string
	// contains filtered or unexported fields
}

Implements RFC Draft

https://www.rfc-editor.org/rfc/rfc8071.html

func New

func New(proto device.ProtocolHandler) *CallHome

func (*CallHome) ApplyOptions

func (callh *CallHome) ApplyOptions(options Options) error

func (*CallHome) OnRegister

func (callh *CallHome) OnRegister(l RegisterListener) nodeutil.Subscription

func (*CallHome) Options

func (callh *CallHome) Options() Options

func (*CallHome) Register

func (callh *CallHome) Register()

type Options

type Options struct {
	DeviceId     string
	Address      string
	LocalAddress string
	RetryRateMs  int
}

func DefaultOptions

func DefaultOptions() Options

type RegisterListener

type RegisterListener func(d device.Device, update RegisterUpdate)

type RegisterUpdate

type RegisterUpdate int
const (
	Register RegisterUpdate = iota
	Unregister
)

Jump to

Keyboard shortcuts

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