controller

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2022 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsSwitchMachineNotExistError

func IsSwitchMachineNotExistError(err error) bool

Types

type TortoiseController

type TortoiseController interface {
	UpdateSwitchMachine(switchmachine.State) error
	GetSwitchMachines() []switchmachine.State
	GetSwitchMachineById(id switchmachine.Id) (switchmachine.State, error)
	SetSwitchMachineEventListenerFunc(func(event.SwitchMachineEvent))
	HandleDriverEvent(dE hardware.DriverEvent)
}

func NewTortoiseController

func NewTortoiseController(driver hardware.Driver) TortoiseController

Wrapping the internal testable call as an external facing interface to restrict functions

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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