autoevent

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewManager added in v1.2.0

func NewManager(ctx context.Context, wg *sync.WaitGroup)

NewManager initiates the AutoEvent manager once

Types

type Executor

type Executor interface {
	Run(ctx context.Context, wg *sync.WaitGroup)
	Stop()
}

func NewExecutor

func NewExecutor(deviceName string, ae contract.AutoEvent) (Executor, error)

NewExecutor creates an Executor for an AutoEvent

type Manager

type Manager interface {
	StartAutoEvents()
	StopAutoEvents()
	RestartForDevice(deviceName string)
	StopForDevice(deviceName string)
}

func GetManager

func GetManager() Manager

GetManager returns Manager instance

Jump to

Keyboard shortcuts

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