cem

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 18, 2024 License: MIT Imports: 8 Imported by: 5

Documentation

Index

Constants

View Source
const (

	// A paired remote device was connected
	DeviceConnected api.EventType = "deviceConnected"

	// A paired remote device was disconnected
	DeviceDisconnected api.EventType = "deviceDisconnected"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Cem added in v0.5.0

type Cem struct {
	Service eebusapi.ServiceInterface

	Currency model.CurrencyType
	// contains filtered or unexported fields
}

Generic CEM implementation

func NewCEM

func NewCEM(
	serviceDescription *eebusapi.Configuration,
	serviceHandler eebusapi.ServiceReaderInterface,
	eventCB api.DeviceEventCallback,
	log logging.LoggingInterface) *Cem

func (*Cem) AddUseCase added in v0.5.0

func (h *Cem) AddUseCase(usecase api.UseCaseInterface)

Add a use case implementation

func (*Cem) HandleEvent added in v0.5.0

func (h *Cem) HandleEvent(payload spineapi.EventPayload)

handle SPINE events

func (*Cem) Setup added in v0.5.0

func (h *Cem) Setup() error

Set up the eebus service

func (*Cem) Shutdown added in v0.5.0

func (h *Cem) Shutdown()

Shutdown the EEBUS servic

func (*Cem) Start added in v0.5.0

func (h *Cem) Start()

Start the EEBUS service

Jump to

Keyboard shortcuts

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