Skip to content

Commit

Permalink
fix: name casing
Browse files Browse the repository at this point in the history
  • Loading branch information
GalvinGao committed Aug 20, 2022
1 parent d156604 commit bbf08fe
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 10 deletions.
5 changes: 3 additions & 2 deletions controller/item/controller.go
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
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
func New() *Controller {
logger := utils.NewLogger("ItemController")

cache := utils.NewCache(utils.CacheConfig{
Name: "Item",
Name: "item",
Server: "",
Interval: time.Minute * 30,
Updater: updater,
Expand Down
5 changes: 3 additions & 2 deletions controller/matrix/controller.go
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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),
Expand Down
5 changes: 3 additions & 2 deletions controller/siteStats/controller.go
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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),
Expand Down
5 changes: 3 additions & 2 deletions controller/stage/controller.go
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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),
Expand Down
5 changes: 3 additions & 2 deletions controller/zone/controller.go
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
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
func New() *Controller {
logger := utils.NewLogger("ZoneController")

cache := utils.NewCache(utils.CacheConfig{
Name: "Zone",
Name: "zone",
Server: "",
Interval: time.Minute * 30,
Updater: updater,
Expand Down

0 comments on commit bbf08fe

Please sign in to comment.