diff options
author | pg9182 <96569817+pg9182@users.noreply.github.com> | 2023-01-05 18:32:14 -0500 |
---|---|---|
committer | pg9182 <96569817+pg9182@users.noreply.github.com> | 2023-01-05 21:29:18 -0500 |
commit | dac5f7e0a513d8cebe8ad2f4161a4c73ba72bee7 (patch) | |
tree | 3a615659691cbe5eb093358aa74b82ab119e978f /pkg/api/api0/client.go | |
parent | e8cea8d07de5caf16f6d0e2e8ec3724b03de1d6a (diff) | |
download | Atlas-dac5f7e0a513d8cebe8ad2f4161a4c73ba72bee7.tar.gz Atlas-dac5f7e0a513d8cebe8ad2f4161a4c73ba72bee7.zip |
pkg/api/api0: Export request version helpers
Diffstat (limited to 'pkg/api/api0/client.go')
-rw-r--r-- | pkg/api/api0/client.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/pkg/api/api0/client.go b/pkg/api/api0/client.go index b8b54cb..b4e80d1 100644 --- a/pkg/api/api0/client.go +++ b/pkg/api/api0/client.go @@ -61,7 +61,7 @@ func (h *Handler) handleMainMenuPromos(w http.ResponseWriter, r *http.Request) { return } - h.m().client_mainmenupromos_requests_total.success(h.extractLauncherVersion(r)).Inc() + h.m().client_mainmenupromos_requests_total.success(h.ExtractLauncherVersion(r)).Inc() h.geoCounter2(r, h.m().client_mainmenupromos_requests_map) var p MainMenuPromos @@ -88,7 +88,7 @@ func (h *Handler) handleClientOriginAuth(w http.ResponseWriter, r *http.Request) return } - if !h.checkLauncherVersion(r) { + if !h.CheckLauncherVersion(r) { h.m().client_originauth_requests_total.reject_versiongate.Inc() respFail(w, r, http.StatusBadRequest, ErrorCode_UNSUPPORTED_VERSION.MessageObj()) return @@ -323,7 +323,7 @@ func (h *Handler) handleClientAuthWithServer(w http.ResponseWriter, r *http.Requ return } - if !h.checkLauncherVersion(r) { + if !h.CheckLauncherVersion(r) { h.m().client_authwithserver_requests_total.reject_versiongate.Inc() respFail(w, r, http.StatusBadRequest, ErrorCode_UNSUPPORTED_VERSION.MessageObj()) return @@ -479,7 +479,7 @@ func (h *Handler) handleClientAuthWithSelf(w http.ResponseWriter, r *http.Reques return } - if !h.checkLauncherVersion(r) { + if !h.CheckLauncherVersion(r) { h.m().client_authwithself_requests_total.reject_versiongate.Inc() respFail(w, r, http.StatusBadRequest, ErrorCode_UNSUPPORTED_VERSION.MessageObj()) return @@ -617,7 +617,7 @@ func (h *Handler) handleClientServers(w http.ResponseWriter, r *http.Request) { h.m().client_servers_response_size_bytes.none.Update(float64(len(buf))) } - lver := h.extractLauncherVersion(r) + lver := h.ExtractLauncherVersion(r) h.m().client_servers_requests_total.success(lver).Inc() if lver != "" { h.geoCounter2(r, h.m().client_servers_requests_map.northstar) |