diff --git a/controller/item/controller.go b/controller/item/controller.go index 3c7e284..7c9b0a9 100644 --- a/controller/item/controller.go +++ b/controller/item/controller.go @@ -1,9 +1,10 @@ package item import ( + "time" + "github.com/penguin-statistics/widget-backend/controller/status" "github.com/penguin-statistics/widget-backend/utils" - "time" ) // New creates a new Controller with its corresponding utils.Cache @@ -11,7 +12,7 @@ func New() *Controller { logger := utils.NewLogger("ItemController") cache := utils.NewCache(utils.CacheConfig{ - Name: "Item", + Name: "item", Server: "", Interval: time.Minute * 30, Updater: updater, diff --git a/controller/matrix/controller.go b/controller/matrix/controller.go index b3d0737..8322c89 100644 --- a/controller/matrix/controller.go +++ b/controller/matrix/controller.go @@ -1,11 +1,12 @@ package matrix import ( + "time" + "github.com/penguin-statistics/widget-backend/config" "github.com/penguin-statistics/widget-backend/controller/status" "github.com/penguin-statistics/widget-backend/errors" "github.com/penguin-statistics/widget-backend/utils" - "time" ) // New creates a new Controller with its corresponding utils.Cache @@ -17,7 +18,7 @@ func New() *Controller { caches = append( caches, utils.NewCache(utils.CacheConfig{ - Name: "Matrix", + Name: "matrix", Server: server, Interval: time.Minute * 5, Updater: createUpdater(server), diff --git a/controller/siteStats/controller.go b/controller/siteStats/controller.go index f51f25f..265839f 100644 --- a/controller/siteStats/controller.go +++ b/controller/siteStats/controller.go @@ -1,11 +1,12 @@ package siteStats import ( + "time" + "github.com/penguin-statistics/widget-backend/config" "github.com/penguin-statistics/widget-backend/controller/status" "github.com/penguin-statistics/widget-backend/errors" "github.com/penguin-statistics/widget-backend/utils" - "time" ) // New creates a new Controller with its corresponding utils.Cache @@ -17,7 +18,7 @@ func New() *Controller { caches = append( caches, utils.NewCache(utils.CacheConfig{ - Name: "SiteStat", + Name: "siteStats", Server: server, Interval: time.Minute * 5, Updater: createUpdater(server), diff --git a/controller/stage/controller.go b/controller/stage/controller.go index fa8ed00..6992986 100644 --- a/controller/stage/controller.go +++ b/controller/stage/controller.go @@ -1,11 +1,12 @@ package stage import ( + "time" + "github.com/penguin-statistics/widget-backend/config" "github.com/penguin-statistics/widget-backend/controller/status" "github.com/penguin-statistics/widget-backend/errors" "github.com/penguin-statistics/widget-backend/utils" - "time" ) // New creates a new Controller with its corresponding utils.Cache @@ -17,7 +18,7 @@ func New() *Controller { caches = append( caches, utils.NewCache(utils.CacheConfig{ - Name: "Stage", + Name: "stage", Server: server, Interval: time.Minute * 30, Updater: createUpdater(server), diff --git a/controller/zone/controller.go b/controller/zone/controller.go index 59cc312..8f5111e 100644 --- a/controller/zone/controller.go +++ b/controller/zone/controller.go @@ -1,9 +1,10 @@ package zone import ( + "time" + "github.com/penguin-statistics/widget-backend/controller/status" "github.com/penguin-statistics/widget-backend/utils" - "time" ) // New creates a new Controller with its corresponding utils.Cache @@ -11,7 +12,7 @@ func New() *Controller { logger := utils.NewLogger("ZoneController") cache := utils.NewCache(utils.CacheConfig{ - Name: "Zone", + Name: "zone", Server: "", Interval: time.Minute * 30, Updater: updater,