package config import ( "git.aiterp.net/lucifer/new-server/internal/drivers" "git.aiterp.net/lucifer/new-server/internal/drivers/hue" "git.aiterp.net/lucifer/new-server/internal/drivers/lifx" "git.aiterp.net/lucifer/new-server/internal/drivers/nanoleaf" "git.aiterp.net/lucifer/new-server/models" "sync" ) var dp models.DriverProvider var dpOnce sync.Once func DriverProvider() models.DriverProvider { dpOnce.Do(func() { dp = drivers.DriverMap{ models.DTNanoLeaf: &nanoleaf.Driver{}, models.DTHue: &hue.Driver{}, models.DTLIFX: &lifx.Driver{}, } }) return dp }