listener

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package listener defines an interface for listening to events

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Listener

type Listener interface {
	Listen(device *tplink.Device, client mqtt.Client, callback StateChangedCallback) error
}

Listener is an interface which defines a location which will listen for events for a specific device.

type StateChangedCallback

type StateChangedCallback func(device *tplink.Device, client mqtt.Client)

StateChangedCallback is an interface which defines a callback where a listener can tell the rest of the system a device state has changed.

Directories

Path Synopsis
Package homeassistant provides a listener for listening to events from home assistant mqtt channels.
Package homeassistant provides a listener for listening to events from home assistant mqtt channels.

Jump to

Keyboard shortcuts

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