You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
370 B

4 years ago
  1. package config
  2. import "git.aiterp.net/lucifer/server3/models"
  3. var (
  4. dRepo models.DeviceRepository
  5. ehRepo models.EventHandlerRepository
  6. )
  7. func DeviceRepository() models.DeviceRepository {
  8. if dRepo == nil {
  9. panic("panik")
  10. }
  11. return dRepo
  12. }
  13. func EventHandlerRepository() models.EventHandlerRepository {
  14. if ehRepo == nil {
  15. panic("panik")
  16. }
  17. return ehRepo
  18. }