Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

chore: move geoip into services directory

Gabe Kangas3e628cc47eb0
diff --git a/core/chat/chatclient.go b/core/chat/chatclient.go
index 75e4e91e3e..7eb28543e3 100644
--- a/core/chat/chatclient.go
+++ b/core/chat/chatclient.go
@@ -14,8 +14,8 @@ import (
"github.com/owncast/owncast/config"
"github.com/owncast/owncast/core/chat/events"
"github.com/owncast/owncast/core/data"
- "github.com/owncast/owncast/geoip"
"github.com/owncast/owncast/models"
+ "github.com/owncast/owncast/services/geoip"
)
// Client represents a single chat client.
diff --git a/core/chat/server.go b/core/chat/server.go
index 56df76933c..771abdc9d1 100644
--- a/core/chat/server.go
+++ b/core/chat/server.go
@@ -15,9 +15,9 @@ 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/persistence/userrepository"
+ "github.com/owncast/owncast/services/geoip"
"github.com/owncast/owncast/utils"
)
diff --git a/core/stats.go b/core/stats.go
index dcefd1852a..8eef760ffe 100644
--- a/core/stats.go
+++ b/core/stats.go
@@ -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 (
diff --git a/models/client.go b/models/client.go
index dd5a76ebcd..54ddbac50d 100644
--- a/models/client.go
+++ b/models/client.go
@@ -4,7 +4,7 @@ import (
"net/http"
"time"
- "github.com/owncast/owncast/geoip"
+ "github.com/owncast/owncast/services/geoip"
"github.com/owncast/owncast/utils"
)
diff --git a/models/viewer.go b/models/viewer.go
index 03c60127b1..21890d9554 100644
--- a/models/viewer.go
+++ b/models/viewer.go
@@ -4,7 +4,7 @@ import (
"net/http"
"time"
- "github.com/owncast/owncast/geoip"
+ "github.com/owncast/owncast/services/geoip"
"github.com/owncast/owncast/utils"
)
diff --git a/geoip/geoip.go b/services/geoip/geoip.go
similarity index 100%
rename from geoip/geoip.go
rename to services/geoip/geoip.go