major change of websocket dbmHandler structure

This commit is contained in:
Adrian Zürcher
2025-04-23 21:53:01 +02:00
parent a1f947e24a
commit 0a137c9d86
35 changed files with 1676 additions and 424 deletions

16
drivers/artNet.go Normal file
View File

@@ -0,0 +1,16 @@
package drivers
type ArtNetDriver struct {
Bus string
Addresses []uint
}
func NewArtNetDriver(bus string) *ArtNetDriver {
return &ArtNetDriver{
Bus: bus,
}
}
func (a *ArtNetDriver) AddAddress(adr uint) {
a.Addresses = append(a.Addresses, adr)
}

7
drivers/drivers.go Normal file
View File

@@ -0,0 +1,7 @@
package drivers
type Drivers []Driver
type Driver interface {
AddAddress()
}