From ea3803ec85f0048a3bfc8afb08153c309c300519 Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Wed, 14 Jun 2023 17:29:42 -0700 Subject: [PATCH] feat: move geoip into services --- core/chat/chatclient.go | 2 +- core/chat/server.go | 2 +- core/stats.go | 2 +- models/client.go | 2 +- models/viewer.go | 2 +- {geoip => services/geoip}/geoip.go | 0 6 files changed, 5 insertions(+), 5 deletions(-) rename {geoip => services/geoip}/geoip.go (100%) diff --git a/core/chat/chatclient.go b/core/chat/chatclient.go index f8d7d6e59..fd398116e 100644 --- a/core/chat/chatclient.go +++ b/core/chat/chatclient.go @@ -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. diff --git a/core/chat/server.go b/core/chat/server.go index c774cf744..9f311addd 100644 --- a/core/chat/server.go +++ b/core/chat/server.go @@ -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" ) diff --git a/core/stats.go b/core/stats.go index dcefd1852..8eef760ff 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 dd5a76ebc..54ddbac50 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 03c60127b..21890d955 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