platform: modularize api/gui, add docs-tests-web foundation, and refresh root config

This commit is contained in:
beckline
2026-03-26 22:40:54 +03:00
parent 0e2d7f61ea
commit 6a56d734c2
562 changed files with 70151 additions and 16423 deletions

View File

@@ -0,0 +1,25 @@
package egressutil
import "strings"
type IdentitySnapshot struct {
IP string
CountryCode string
CountryName string
UpdatedAt string
Stale bool
RefreshInProgress bool
LastError string
NextRetryAt string
}
func IdentityChanged(prev, next IdentitySnapshot) bool {
return strings.TrimSpace(prev.IP) != strings.TrimSpace(next.IP) ||
strings.TrimSpace(prev.CountryCode) != strings.TrimSpace(next.CountryCode) ||
strings.TrimSpace(prev.CountryName) != strings.TrimSpace(next.CountryName) ||
strings.TrimSpace(prev.UpdatedAt) != strings.TrimSpace(next.UpdatedAt) ||
prev.Stale != next.Stale ||
prev.RefreshInProgress != next.RefreshInProgress ||
strings.TrimSpace(prev.LastError) != strings.TrimSpace(next.LastError) ||
strings.TrimSpace(prev.NextRetryAt) != strings.TrimSpace(next.NextRetryAt)
}