mirror of
https://github.com/Xevion/vastly.git
synced 2025-12-05 23:16:48 -06:00
line endings change fix, misc
This commit is contained in:
0
.gitignore
vendored
Executable file → Normal file
0
.gitignore
vendored
Executable file → Normal file
0
.vscode/launch.json
vendored
Executable file → Normal file
0
.vscode/launch.json
vendored
Executable file → Normal file
2
.vscode/settings.json
vendored
Executable file → Normal file
2
.vscode/settings.json
vendored
Executable file → Normal file
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"cSpell.words": ["vastly", "vmem"],
|
"cSpell.words": ["dlperf", "vastly", "vmem"],
|
||||||
"cSpell.ignorePaths": [
|
"cSpell.ignorePaths": [
|
||||||
"package-lock.json",
|
"package-lock.json",
|
||||||
"node_modules",
|
"node_modules",
|
||||||
|
|||||||
0
.vscode/tasks.json
vendored
Executable file → Normal file
0
.vscode/tasks.json
vendored
Executable file → Normal file
0
api/client.go
Executable file → Normal file
0
api/client.go
Executable file → Normal file
0
api/client_test.go
Executable file → Normal file
0
api/client_test.go
Executable file → Normal file
11
api/go.mod
Executable file → Normal file
11
api/go.mod
Executable file → Normal file
@@ -1,3 +1,14 @@
|
|||||||
module xevion.dev/vastly/api
|
module xevion.dev/vastly/api
|
||||||
|
|
||||||
go 1.23.3
|
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
14
api/go.sum
Normal 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
0
api/instances.go
Executable file → Normal file
0
api/instances_test.go
Executable file → Normal file
0
api/instances_test.go
Executable file → Normal file
18
api/latency.go
Normal file
18
api/latency.go
Normal 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
0
api/score.go
Executable file → Normal file
0
api/search.go
Executable file → Normal file
0
api/search.go
Executable file → Normal file
0
api/types.go
Executable file → Normal file
0
api/types.go
Executable file → Normal file
0
api/utilities.go
Executable file → Normal file
0
api/utilities.go
Executable file → Normal file
0
build/README.md
Executable file → Normal file
0
build/README.md
Executable file → Normal file
0
build/appicon.png
Executable file → Normal file
0
build/appicon.png
Executable file → Normal file
|
Before Width: | Height: | Size: 130 KiB After Width: | Height: | Size: 130 KiB |
0
build/darwin/Info.dev.plist
Executable file → Normal file
0
build/darwin/Info.dev.plist
Executable file → Normal file
0
build/darwin/Info.plist
Executable file → Normal file
0
build/darwin/Info.plist
Executable file → Normal file
0
build/windows/icon.ico
Executable file → Normal file
0
build/windows/icon.ico
Executable file → Normal file
|
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
0
build/windows/info.json
Executable file → Normal file
0
build/windows/info.json
Executable file → Normal file
0
build/windows/installer/project.nsi
Executable file → Normal file
0
build/windows/installer/project.nsi
Executable file → Normal file
0
build/windows/installer/wails_tools.nsh
Executable file → Normal file
0
build/windows/installer/wails_tools.nsh
Executable file → Normal file
0
build/windows/wails.exe.manifest
Executable file → Normal file
0
build/windows/wails.exe.manifest
Executable file → Normal file
0
frontend/index.html
Executable file → Normal file
0
frontend/index.html
Executable file → Normal file
0
frontend/package-lock.json
generated
Executable file → Normal file
0
frontend/package-lock.json
generated
Executable file → Normal file
0
frontend/package.json
Executable file → Normal file
0
frontend/package.json
Executable file → Normal file
0
frontend/package.json.md5
Executable file → Normal file
0
frontend/package.json.md5
Executable file → Normal file
0
frontend/postcss.config.cjs
Executable file → Normal file
0
frontend/postcss.config.cjs
Executable file → Normal file
0
frontend/src/App.tsx
Executable file → Normal file
0
frontend/src/App.tsx
Executable file → Normal file
0
frontend/src/main.css
Executable file → Normal file
0
frontend/src/main.css
Executable file → Normal file
0
frontend/src/main.tsx
Executable file → Normal file
0
frontend/src/main.tsx
Executable file → Normal file
0
frontend/src/utils.ts
Executable file → Normal file
0
frontend/src/utils.ts
Executable file → Normal file
0
frontend/src/vite-env.d.ts
vendored
Executable file → Normal file
0
frontend/src/vite-env.d.ts
vendored
Executable file → Normal file
0
frontend/tailwind.config.js
Executable file → Normal file
0
frontend/tailwind.config.js
Executable file → Normal file
0
frontend/tsconfig.json
Executable file → Normal file
0
frontend/tsconfig.json
Executable file → Normal file
0
frontend/tsconfig.node.json
Executable file → Normal file
0
frontend/tsconfig.node.json
Executable file → Normal file
0
frontend/vite.config.ts
Executable file → Normal file
0
frontend/vite.config.ts
Executable file → Normal file
0
frontend/wailsjs/go/main/App.d.ts
vendored
Executable file → Normal file
0
frontend/wailsjs/go/main/App.d.ts
vendored
Executable file → Normal file
0
frontend/wailsjs/go/main/App.js
Executable file → Normal file
0
frontend/wailsjs/go/main/App.js
Executable file → Normal file
0
frontend/wailsjs/go/models.ts
Executable file → Normal file
0
frontend/wailsjs/go/models.ts
Executable file → Normal file
0
frontend/wailsjs/runtime/package.json
Executable file → Normal file
0
frontend/wailsjs/runtime/package.json
Executable file → Normal file
0
frontend/wailsjs/runtime/runtime.d.ts
vendored
Executable file → Normal file
0
frontend/wailsjs/runtime/runtime.d.ts
vendored
Executable file → Normal file
0
frontend/wailsjs/runtime/runtime.js
Executable file → Normal file
0
frontend/wailsjs/runtime/runtime.js
Executable file → Normal file
0
wails.json
Executable file → Normal file
0
wails.json
Executable file → Normal file
Reference in New Issue
Block a user