adapter

package
v0.0.0-...-6312dd6 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adapter

type Adapter struct {
	// contains filtered or unexported fields
}

func NewAdapter

func NewAdapter(id string) *Adapter

func (*Adapter) AddDevice

func (a *Adapter) AddDevice(dev Device)

func (*Adapter) GetAdapter

func (a *Adapter) GetAdapter() *Adapter

func (*Adapter) GetDevice

func (a *Adapter) GetDevice(id string) Device

func (*Adapter) GetDevices

func (a *Adapter) GetDevices() []Device

func (*Adapter) GetId

func (a *Adapter) GetId() string

func (*Adapter) RemoveDevice

func (a *Adapter) RemoveDevice(id string)

type Device

type Device interface {
	GetId() string
}

type Entity

type Entity interface {
	GetId() string
	GetDevice(id string) Device
	GetDevices() []Device
	RemoveDevice(deviceId string)
	GetAdapter() *Adapter
}

type Thing

type Thing interface {
	GetId() string
}

Jump to

Keyboard shortcuts

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