line endings change fix, misc

This commit is contained in:
2024-12-16 21:04:05 -06:00
parent 342918fa2f
commit 0659047a9b
49 changed files with 44 additions and 1 deletions

0
api/client.go Executable file → Normal file
View File

0
api/client_test.go Executable file → Normal file
View File

11
api/go.mod Executable file → Normal file
View File

@@ -1,3 +1,14 @@
module xevion.dev/vastly/api
go 1.23.3
require go.uber.org/zap v1.27.0
require (
github.com/google/uuid v1.6.0 // indirect
github.com/prometheus-community/pro-bing v0.5.0 // indirect
go.uber.org/multierr v1.10.0 // indirect
golang.org/x/net v0.32.0 // indirect
golang.org/x/sync v0.10.0 // indirect
golang.org/x/sys v0.28.0 // indirect
)

14
api/go.sum Normal file
View File

@@ -0,0 +1,14 @@
github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0=
github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
github.com/prometheus-community/pro-bing v0.5.0 h1:Fq+4BUXKIvsPtXUY8K+04ud9dkAuFozqGmRAyNUpffY=
github.com/prometheus-community/pro-bing v0.5.0/go.mod h1:1joR9oXdMEAcAJJvhs+8vNDvTg5thfAZcRFhcUozG2g=
go.uber.org/multierr v1.10.0 h1:S0h4aNzvfcFsC3dRF1jLoaov7oRaKqRGC/pUEJ2yvPQ=
go.uber.org/multierr v1.10.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y=
go.uber.org/zap v1.27.0 h1:aJMhYGrd5QSmlpLMr2MftRKl7t8J8PTZPA732ud/XR8=
go.uber.org/zap v1.27.0/go.mod h1:GB2qFLM7cTU87MWRP2mPIjqfIDnGu+VIO4V/SdhGo2E=
golang.org/x/net v0.32.0 h1:ZqPmj8Kzc+Y6e0+skZsuACbx+wzMgo5MQsJh9Qd6aYI=
golang.org/x/net v0.32.0/go.mod h1:CwU0IoeOlnQQWJ6ioyFrfRuomB8GKF6KbYXZVyeXNfs=
golang.org/x/sync v0.10.0 h1:3NQrjDixjgGwUOCaF8w2+VYHv0Ve/vGYSbdkTa98gmQ=
golang.org/x/sync v0.10.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
golang.org/x/sys v0.28.0 h1:Fksou7UEQUWlKvIdsqzJmUmCX3cZuD2+P3XyyzwMhlA=
golang.org/x/sys v0.28.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=

0
api/instances.go Executable file → Normal file
View File

0
api/instances_test.go Executable file → Normal file
View File

18
api/latency.go Normal file
View File

@@ -0,0 +1,18 @@
package api
import probing "github.com/prometheus-community/pro-bing"
type PingResult struct {
Ip string
Latency float64
}
func GetLatency(ip string) (float64, error) {
pinger, err := probing.NewPinger(ip)
if err != nil {
return 0, err
}
pinger
return 0, nil
}

0
api/score.go Executable file → Normal file
View File

0
api/search.go Executable file → Normal file
View File

0
api/types.go Executable file → Normal file
View File

0
api/utilities.go Executable file → Normal file
View File