package config import "git.aiterp.net/lucifer/new-server/models" var ( dRepo models.DeviceRepository ehRepo models.EventHandlerRepository ) func DeviceRepository() models.DeviceRepository { if dRepo == nil { panic("panik") } return dRepo } func EventHandlerRepository() models.EventHandlerRepository { if ehRepo == nil { panic("panik") } return ehRepo }