Browse Source

feat: move geoip into services

backend-refactor
Gabe Kangas 3 years ago
parent
commit
650159d8c9
No known key found for this signature in database
GPG Key ID: 4345B2060657F330
  1. 2
      core/chat/chatclient.go
  2. 2
      core/chat/server.go
  3. 2
      core/stats.go
  4. 2
      models/client.go
  5. 2
      models/viewer.go
  6. 0
      services/geoip/geoip.go

2
core/chat/chatclient.go

@ -13,8 +13,8 @@ import ( @@ -13,8 +13,8 @@ import (
"github.com/gorilla/websocket"
"github.com/owncast/owncast/config"
"github.com/owncast/owncast/core/chat/events"
"github.com/owncast/owncast/geoip"
"github.com/owncast/owncast/models"
"github.com/owncast/owncast/services/geoip"
)
// Client represents a single chat client.

2
core/chat/server.go

@ -15,8 +15,8 @@ import ( @@ -15,8 +15,8 @@ import (
"github.com/owncast/owncast/core/chat/events"
"github.com/owncast/owncast/core/data"
"github.com/owncast/owncast/core/webhooks"
"github.com/owncast/owncast/geoip"
"github.com/owncast/owncast/models"
"github.com/owncast/owncast/services/geoip"
"github.com/owncast/owncast/storage"
"github.com/owncast/owncast/utils"
)

2
core/stats.go

@ -8,8 +8,8 @@ import ( @@ -8,8 +8,8 @@ import (
log "github.com/sirupsen/logrus"
"github.com/owncast/owncast/core/data"
"github.com/owncast/owncast/geoip"
"github.com/owncast/owncast/models"
"github.com/owncast/owncast/services/geoip"
)
var (

2
models/client.go

@ -4,7 +4,7 @@ import ( @@ -4,7 +4,7 @@ import (
"net/http"
"time"
"github.com/owncast/owncast/geoip"
"github.com/owncast/owncast/services/geoip"
"github.com/owncast/owncast/utils"
)

2
models/viewer.go

@ -4,7 +4,7 @@ import ( @@ -4,7 +4,7 @@ import (
"net/http"
"time"
"github.com/owncast/owncast/geoip"
"github.com/owncast/owncast/services/geoip"
"github.com/owncast/owncast/utils"
)

0
geoip/geoip.go → services/geoip/geoip.go

Loading…
Cancel
Save