├── .github └── FUNDING.yml ├── LICENSE ├── README.md ├── client ├── .env.example ├── .gitignore ├── README.md ├── bun.lock ├── components.json ├── eslint.config.js ├── index.html ├── package-lock.json ├── package.json ├── postcss.config.js ├── public │ └── vite.svg ├── src │ ├── App.css │ ├── App.tsx │ ├── assets │ │ └── react.svg │ ├── atoms │ │ └── user.tsx │ ├── components │ │ ├── app-sidebar.tsx │ │ ├── login-form.tsx │ │ ├── nav-main.tsx │ │ ├── nav-projects.tsx │ │ ├── nav-user.tsx │ │ ├── team-switcher.tsx │ │ ├── theme-provider.tsx │ │ ├── tooltip-warper.tsx │ │ └── ui │ │ │ ├── alert-dialog.tsx │ │ │ ├── avatar.tsx │ │ │ ├── badge.tsx │ │ │ ├── breadcrumb.tsx │ │ │ ├── button.tsx │ │ │ ├── card.tsx │ │ │ ├── chart.tsx │ │ │ ├── collapsible.tsx │ │ │ ├── dialog.tsx │ │ │ ├── dropdown-menu.tsx │ │ │ ├── form.tsx │ │ │ ├── input.tsx │ │ │ ├── label.tsx │ │ │ ├── select.tsx │ │ │ ├── separator.tsx │ │ │ ├── sheet.tsx │ │ │ ├── sidebar.tsx │ │ │ ├── skeleton.tsx │ │ │ ├── switch.tsx │ │ │ ├── tabs.tsx │ │ │ ├── toggle.tsx │ │ │ └── tooltip.tsx │ ├── forms │ │ └── alert │ │ │ ├── alert.tsx │ │ │ └── schema.ts │ ├── hooks │ │ └── use-mobile.tsx │ ├── index.css │ ├── lib │ │ ├── api.ts │ │ └── utils.ts │ ├── main.tsx │ ├── models │ │ └── alert.ts │ ├── pages │ │ ├── auth │ │ │ └── login.tsx │ │ ├── layout │ │ │ ├── DashbordLayout.tsx │ │ │ └── root.tsx │ │ └── nodes │ │ │ ├── components │ │ │ ├── alert-card.tsx │ │ │ ├── alert-form.tsx │ │ │ ├── alert-tab.tsx │ │ │ ├── animate-dot.tsx │ │ │ ├── button-bar.tsx │ │ │ ├── cpu-chart.tsx │ │ │ ├── memory-chart.tsx │ │ │ ├── metrics-tab.tsx │ │ │ ├── name-edit-dialog.tsx │ │ │ ├── netwrok-chart.tsx │ │ │ ├── node-card.tsx │ │ │ └── node-view-tabs.tsx │ │ │ ├── index.tsx │ │ │ └── view.tsx │ ├── router │ │ ├── protectedRoute.tsx │ │ └── router.tsx │ ├── schema │ │ └── node.ts │ ├── types │ │ └── node_type.ts │ └── vite-env.d.ts ├── tailwind.config.js ├── tsconfig.app.json ├── tsconfig.json ├── tsconfig.node.json └── vite.config.ts ├── config.xrun.json ├── docs └── readme_draft.md ├── server ├── .air.toml ├── .env.example ├── .gitignore ├── cmd │ ├── app │ │ └── app.go │ └── cli │ │ └── cli.go ├── go.mod ├── go.sum ├── internal │ ├── db │ │ ├── alerts.sql.go │ │ ├── custom_queries.go │ │ ├── db.go │ │ ├── models.go │ │ ├── net_stat.sql.go │ │ ├── node.sql.go │ │ ├── repo.go │ │ ├── sql │ │ │ ├── migrations │ │ │ │ ├── 20250202111257_user_table.down.sql │ │ │ │ ├── 20250202111257_user_table.up.sql │ │ │ │ ├── 20250202120019_node_table.down.sql │ │ │ │ ├── 20250202120019_node_table.up.sql │ │ │ │ ├── 20250203171934_node_sys_info_table.down.sql │ │ │ │ ├── 20250203171934_node_sys_info_table.up.sql │ │ │ │ ├── 20250203172228_node_disk_info_table.down.sql │ │ │ │ ├── 20250203172228_node_disk_info_table.up.sql │ │ │ │ ├── 20250207145808_system_stats_table.down.sql │ │ │ │ ├── 20250207145808_system_stats_table.up.sql │ │ │ │ ├── 20250215115558_enable_tablefunc_extension.down.sql │ │ │ │ ├── 20250215115558_enable_tablefunc_extension.up.sql │ │ │ │ ├── 20250216175622_system_stat_retention_policy.down.sql │ │ │ │ ├── 20250216175622_system_stat_retention_policy.up.sql │ │ │ │ ├── 20250216180054_net_stats.down.sql │ │ │ │ ├── 20250216180054_net_stats.up.sql │ │ │ │ ├── 20250216180502_net_stat_retention_policy.down.sql │ │ │ │ ├── 20250216180502_net_stat_retention_policy.up.sql │ │ │ │ ├── 20250228161056_alert_table.down.sql │ │ │ │ └── 20250228161056_alert_table.up.sql │ │ │ └── query │ │ │ │ ├── alerts.sql │ │ │ │ ├── net_stat.sql │ │ │ │ ├── node.sql │ │ │ │ ├── system_stat.sql │ │ │ │ └── user.sql │ │ ├── system_stat.sql.go │ │ └── user.sql.go │ ├── dto │ │ ├── alert_dto.go │ │ ├── node_dto.go │ │ └── user_dto.go │ ├── handlers │ │ ├── alert_handler.go │ │ ├── auth_handler.go │ │ └── node_handler.go │ ├── middleware │ │ ├── auth.go │ │ └── cors.go │ ├── services │ │ ├── alert_service.go │ │ ├── node_service.go │ │ └── user_service.go │ ├── tcpserver │ │ ├── actions.go │ │ ├── alert_backgroud_service.go │ │ ├── alert_sender.go │ │ ├── server.go │ │ └── types.go │ └── utils │ │ ├── bytecovertor.go │ │ ├── password.go │ │ └── token.go ├── main.go ├── makefile ├── sqlc.yml └── test │ └── custom_query_test.go └── tmp └── build-errors.log /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/README.md -------------------------------------------------------------------------------- /client/.env.example: -------------------------------------------------------------------------------- 1 | BASE_URL="http://127.0.0.1:8000/api/v1" -------------------------------------------------------------------------------- /client/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/client/.gitignore -------------------------------------------------------------------------------- /client/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/client/README.md -------------------------------------------------------------------------------- /client/bun.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/client/bun.lock -------------------------------------------------------------------------------- /client/components.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/client/components.json -------------------------------------------------------------------------------- /client/eslint.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/client/eslint.config.js -------------------------------------------------------------------------------- /client/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/client/index.html -------------------------------------------------------------------------------- /client/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/client/package-lock.json -------------------------------------------------------------------------------- /client/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/client/package.json -------------------------------------------------------------------------------- /client/postcss.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/client/postcss.config.js -------------------------------------------------------------------------------- /client/public/vite.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/client/public/vite.svg -------------------------------------------------------------------------------- /client/src/App.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/client/src/App.css -------------------------------------------------------------------------------- /client/src/App.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/client/src/App.tsx -------------------------------------------------------------------------------- /client/src/assets/react.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/client/src/assets/react.svg -------------------------------------------------------------------------------- /client/src/atoms/user.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/client/src/atoms/user.tsx -------------------------------------------------------------------------------- /client/src/components/app-sidebar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/client/src/components/app-sidebar.tsx -------------------------------------------------------------------------------- /client/src/components/login-form.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/client/src/components/login-form.tsx -------------------------------------------------------------------------------- /client/src/components/nav-main.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/client/src/components/nav-main.tsx -------------------------------------------------------------------------------- /client/src/components/nav-projects.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/client/src/components/nav-projects.tsx -------------------------------------------------------------------------------- /client/src/components/nav-user.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/client/src/components/nav-user.tsx -------------------------------------------------------------------------------- /client/src/components/team-switcher.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/client/src/components/team-switcher.tsx -------------------------------------------------------------------------------- /client/src/components/theme-provider.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/client/src/components/theme-provider.tsx -------------------------------------------------------------------------------- /client/src/components/tooltip-warper.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/client/src/components/tooltip-warper.tsx -------------------------------------------------------------------------------- /client/src/components/ui/alert-dialog.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/client/src/components/ui/alert-dialog.tsx -------------------------------------------------------------------------------- /client/src/components/ui/avatar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/client/src/components/ui/avatar.tsx -------------------------------------------------------------------------------- /client/src/components/ui/badge.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/client/src/components/ui/badge.tsx -------------------------------------------------------------------------------- /client/src/components/ui/breadcrumb.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/client/src/components/ui/breadcrumb.tsx -------------------------------------------------------------------------------- /client/src/components/ui/button.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/client/src/components/ui/button.tsx -------------------------------------------------------------------------------- /client/src/components/ui/card.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/client/src/components/ui/card.tsx -------------------------------------------------------------------------------- /client/src/components/ui/chart.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/client/src/components/ui/chart.tsx -------------------------------------------------------------------------------- /client/src/components/ui/collapsible.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/client/src/components/ui/collapsible.tsx -------------------------------------------------------------------------------- /client/src/components/ui/dialog.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/client/src/components/ui/dialog.tsx -------------------------------------------------------------------------------- /client/src/components/ui/dropdown-menu.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/client/src/components/ui/dropdown-menu.tsx -------------------------------------------------------------------------------- /client/src/components/ui/form.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/client/src/components/ui/form.tsx -------------------------------------------------------------------------------- /client/src/components/ui/input.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/client/src/components/ui/input.tsx -------------------------------------------------------------------------------- /client/src/components/ui/label.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/client/src/components/ui/label.tsx -------------------------------------------------------------------------------- /client/src/components/ui/select.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/client/src/components/ui/select.tsx -------------------------------------------------------------------------------- /client/src/components/ui/separator.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/client/src/components/ui/separator.tsx -------------------------------------------------------------------------------- /client/src/components/ui/sheet.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/client/src/components/ui/sheet.tsx -------------------------------------------------------------------------------- /client/src/components/ui/sidebar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/client/src/components/ui/sidebar.tsx -------------------------------------------------------------------------------- /client/src/components/ui/skeleton.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/client/src/components/ui/skeleton.tsx -------------------------------------------------------------------------------- /client/src/components/ui/switch.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/client/src/components/ui/switch.tsx -------------------------------------------------------------------------------- /client/src/components/ui/tabs.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/client/src/components/ui/tabs.tsx -------------------------------------------------------------------------------- /client/src/components/ui/toggle.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/client/src/components/ui/toggle.tsx -------------------------------------------------------------------------------- /client/src/components/ui/tooltip.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/client/src/components/ui/tooltip.tsx -------------------------------------------------------------------------------- /client/src/forms/alert/alert.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/client/src/forms/alert/alert.tsx -------------------------------------------------------------------------------- /client/src/forms/alert/schema.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/client/src/forms/alert/schema.ts -------------------------------------------------------------------------------- /client/src/hooks/use-mobile.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/client/src/hooks/use-mobile.tsx -------------------------------------------------------------------------------- /client/src/index.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/client/src/index.css -------------------------------------------------------------------------------- /client/src/lib/api.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/client/src/lib/api.ts -------------------------------------------------------------------------------- /client/src/lib/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/client/src/lib/utils.ts -------------------------------------------------------------------------------- /client/src/main.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/client/src/main.tsx -------------------------------------------------------------------------------- /client/src/models/alert.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/client/src/models/alert.ts -------------------------------------------------------------------------------- /client/src/pages/auth/login.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/client/src/pages/auth/login.tsx -------------------------------------------------------------------------------- /client/src/pages/layout/DashbordLayout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/client/src/pages/layout/DashbordLayout.tsx -------------------------------------------------------------------------------- /client/src/pages/layout/root.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/client/src/pages/layout/root.tsx -------------------------------------------------------------------------------- /client/src/pages/nodes/components/alert-card.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/client/src/pages/nodes/components/alert-card.tsx -------------------------------------------------------------------------------- /client/src/pages/nodes/components/alert-form.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/client/src/pages/nodes/components/alert-form.tsx -------------------------------------------------------------------------------- /client/src/pages/nodes/components/alert-tab.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/client/src/pages/nodes/components/alert-tab.tsx -------------------------------------------------------------------------------- /client/src/pages/nodes/components/animate-dot.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/client/src/pages/nodes/components/animate-dot.tsx -------------------------------------------------------------------------------- /client/src/pages/nodes/components/button-bar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/client/src/pages/nodes/components/button-bar.tsx -------------------------------------------------------------------------------- /client/src/pages/nodes/components/cpu-chart.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/client/src/pages/nodes/components/cpu-chart.tsx -------------------------------------------------------------------------------- /client/src/pages/nodes/components/memory-chart.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/client/src/pages/nodes/components/memory-chart.tsx -------------------------------------------------------------------------------- /client/src/pages/nodes/components/metrics-tab.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/client/src/pages/nodes/components/metrics-tab.tsx -------------------------------------------------------------------------------- /client/src/pages/nodes/components/name-edit-dialog.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/client/src/pages/nodes/components/name-edit-dialog.tsx -------------------------------------------------------------------------------- /client/src/pages/nodes/components/netwrok-chart.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/client/src/pages/nodes/components/netwrok-chart.tsx -------------------------------------------------------------------------------- /client/src/pages/nodes/components/node-card.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/client/src/pages/nodes/components/node-card.tsx -------------------------------------------------------------------------------- /client/src/pages/nodes/components/node-view-tabs.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/client/src/pages/nodes/components/node-view-tabs.tsx -------------------------------------------------------------------------------- /client/src/pages/nodes/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/client/src/pages/nodes/index.tsx -------------------------------------------------------------------------------- /client/src/pages/nodes/view.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/client/src/pages/nodes/view.tsx -------------------------------------------------------------------------------- /client/src/router/protectedRoute.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/client/src/router/protectedRoute.tsx -------------------------------------------------------------------------------- /client/src/router/router.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/client/src/router/router.tsx -------------------------------------------------------------------------------- /client/src/schema/node.ts: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /client/src/types/node_type.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/client/src/types/node_type.ts -------------------------------------------------------------------------------- /client/src/vite-env.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | -------------------------------------------------------------------------------- /client/tailwind.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/client/tailwind.config.js -------------------------------------------------------------------------------- /client/tsconfig.app.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/client/tsconfig.app.json -------------------------------------------------------------------------------- /client/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/client/tsconfig.json -------------------------------------------------------------------------------- /client/tsconfig.node.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/client/tsconfig.node.json -------------------------------------------------------------------------------- /client/vite.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/client/vite.config.ts -------------------------------------------------------------------------------- /config.xrun.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/config.xrun.json -------------------------------------------------------------------------------- /docs/readme_draft.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/docs/readme_draft.md -------------------------------------------------------------------------------- /server/.air.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/server/.air.toml -------------------------------------------------------------------------------- /server/.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/server/.env.example -------------------------------------------------------------------------------- /server/.gitignore: -------------------------------------------------------------------------------- 1 | tmp 2 | .env 3 | 4 | web 5 | 6 | vps-pilot -------------------------------------------------------------------------------- /server/cmd/app/app.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/server/cmd/app/app.go -------------------------------------------------------------------------------- /server/cmd/cli/cli.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/server/cmd/cli/cli.go -------------------------------------------------------------------------------- /server/go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/server/go.mod -------------------------------------------------------------------------------- /server/go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/server/go.sum -------------------------------------------------------------------------------- /server/internal/db/alerts.sql.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/server/internal/db/alerts.sql.go -------------------------------------------------------------------------------- /server/internal/db/custom_queries.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/server/internal/db/custom_queries.go -------------------------------------------------------------------------------- /server/internal/db/db.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/server/internal/db/db.go -------------------------------------------------------------------------------- /server/internal/db/models.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/server/internal/db/models.go -------------------------------------------------------------------------------- /server/internal/db/net_stat.sql.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/server/internal/db/net_stat.sql.go -------------------------------------------------------------------------------- /server/internal/db/node.sql.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/server/internal/db/node.sql.go -------------------------------------------------------------------------------- /server/internal/db/repo.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/server/internal/db/repo.go -------------------------------------------------------------------------------- /server/internal/db/sql/migrations/20250202111257_user_table.down.sql: -------------------------------------------------------------------------------- 1 | DROP TABLE IF EXISTS users; -------------------------------------------------------------------------------- /server/internal/db/sql/migrations/20250202111257_user_table.up.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/server/internal/db/sql/migrations/20250202111257_user_table.up.sql -------------------------------------------------------------------------------- /server/internal/db/sql/migrations/20250202120019_node_table.down.sql: -------------------------------------------------------------------------------- 1 | DROP TABLE IF EXISTS nodes; -------------------------------------------------------------------------------- /server/internal/db/sql/migrations/20250202120019_node_table.up.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/server/internal/db/sql/migrations/20250202120019_node_table.up.sql -------------------------------------------------------------------------------- /server/internal/db/sql/migrations/20250203171934_node_sys_info_table.down.sql: -------------------------------------------------------------------------------- 1 | DROP TABLE IF EXISTS node_sys_info; -------------------------------------------------------------------------------- /server/internal/db/sql/migrations/20250203171934_node_sys_info_table.up.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/server/internal/db/sql/migrations/20250203171934_node_sys_info_table.up.sql -------------------------------------------------------------------------------- /server/internal/db/sql/migrations/20250203172228_node_disk_info_table.down.sql: -------------------------------------------------------------------------------- 1 | DROP TABLE IF EXISTS node_disk_info; -------------------------------------------------------------------------------- /server/internal/db/sql/migrations/20250203172228_node_disk_info_table.up.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/server/internal/db/sql/migrations/20250203172228_node_disk_info_table.up.sql -------------------------------------------------------------------------------- /server/internal/db/sql/migrations/20250207145808_system_stats_table.down.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/server/internal/db/sql/migrations/20250207145808_system_stats_table.down.sql -------------------------------------------------------------------------------- /server/internal/db/sql/migrations/20250207145808_system_stats_table.up.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/server/internal/db/sql/migrations/20250207145808_system_stats_table.up.sql -------------------------------------------------------------------------------- /server/internal/db/sql/migrations/20250215115558_enable_tablefunc_extension.down.sql: -------------------------------------------------------------------------------- 1 | DROP EXTENSION IF EXISTS tablefunc; -------------------------------------------------------------------------------- /server/internal/db/sql/migrations/20250215115558_enable_tablefunc_extension.up.sql: -------------------------------------------------------------------------------- 1 | CREATE EXTENSION IF NOT EXISTS tablefunc; -------------------------------------------------------------------------------- /server/internal/db/sql/migrations/20250216175622_system_stat_retention_policy.down.sql: -------------------------------------------------------------------------------- 1 | SELECT remove_retention_policy('system_stats'); 2 | -------------------------------------------------------------------------------- /server/internal/db/sql/migrations/20250216175622_system_stat_retention_policy.up.sql: -------------------------------------------------------------------------------- 1 | SELECT add_retention_policy('system_stats', INTERVAL '7 days'); -------------------------------------------------------------------------------- /server/internal/db/sql/migrations/20250216180054_net_stats.down.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/server/internal/db/sql/migrations/20250216180054_net_stats.down.sql -------------------------------------------------------------------------------- /server/internal/db/sql/migrations/20250216180054_net_stats.up.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/server/internal/db/sql/migrations/20250216180054_net_stats.up.sql -------------------------------------------------------------------------------- /server/internal/db/sql/migrations/20250216180502_net_stat_retention_policy.down.sql: -------------------------------------------------------------------------------- 1 | SELECT remove_retention_policy('net_stat'); -------------------------------------------------------------------------------- /server/internal/db/sql/migrations/20250216180502_net_stat_retention_policy.up.sql: -------------------------------------------------------------------------------- 1 | SELECT add_retention_policy('net_stat', INTERVAL '7 days'); -------------------------------------------------------------------------------- /server/internal/db/sql/migrations/20250228161056_alert_table.down.sql: -------------------------------------------------------------------------------- 1 | DROP TABLE IF EXISTS alerts; -------------------------------------------------------------------------------- /server/internal/db/sql/migrations/20250228161056_alert_table.up.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/server/internal/db/sql/migrations/20250228161056_alert_table.up.sql -------------------------------------------------------------------------------- /server/internal/db/sql/query/alerts.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/server/internal/db/sql/query/alerts.sql -------------------------------------------------------------------------------- /server/internal/db/sql/query/net_stat.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/server/internal/db/sql/query/net_stat.sql -------------------------------------------------------------------------------- /server/internal/db/sql/query/node.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/server/internal/db/sql/query/node.sql -------------------------------------------------------------------------------- /server/internal/db/sql/query/system_stat.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/server/internal/db/sql/query/system_stat.sql -------------------------------------------------------------------------------- /server/internal/db/sql/query/user.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/server/internal/db/sql/query/user.sql -------------------------------------------------------------------------------- /server/internal/db/system_stat.sql.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/server/internal/db/system_stat.sql.go -------------------------------------------------------------------------------- /server/internal/db/user.sql.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/server/internal/db/user.sql.go -------------------------------------------------------------------------------- /server/internal/dto/alert_dto.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/server/internal/dto/alert_dto.go -------------------------------------------------------------------------------- /server/internal/dto/node_dto.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/server/internal/dto/node_dto.go -------------------------------------------------------------------------------- /server/internal/dto/user_dto.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/server/internal/dto/user_dto.go -------------------------------------------------------------------------------- /server/internal/handlers/alert_handler.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/server/internal/handlers/alert_handler.go -------------------------------------------------------------------------------- /server/internal/handlers/auth_handler.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/server/internal/handlers/auth_handler.go -------------------------------------------------------------------------------- /server/internal/handlers/node_handler.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/server/internal/handlers/node_handler.go -------------------------------------------------------------------------------- /server/internal/middleware/auth.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/server/internal/middleware/auth.go -------------------------------------------------------------------------------- /server/internal/middleware/cors.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/server/internal/middleware/cors.go -------------------------------------------------------------------------------- /server/internal/services/alert_service.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/server/internal/services/alert_service.go -------------------------------------------------------------------------------- /server/internal/services/node_service.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/server/internal/services/node_service.go -------------------------------------------------------------------------------- /server/internal/services/user_service.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/server/internal/services/user_service.go -------------------------------------------------------------------------------- /server/internal/tcpserver/actions.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/server/internal/tcpserver/actions.go -------------------------------------------------------------------------------- /server/internal/tcpserver/alert_backgroud_service.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/server/internal/tcpserver/alert_backgroud_service.go -------------------------------------------------------------------------------- /server/internal/tcpserver/alert_sender.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/server/internal/tcpserver/alert_sender.go -------------------------------------------------------------------------------- /server/internal/tcpserver/server.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/server/internal/tcpserver/server.go -------------------------------------------------------------------------------- /server/internal/tcpserver/types.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/server/internal/tcpserver/types.go -------------------------------------------------------------------------------- /server/internal/utils/bytecovertor.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/server/internal/utils/bytecovertor.go -------------------------------------------------------------------------------- /server/internal/utils/password.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/server/internal/utils/password.go -------------------------------------------------------------------------------- /server/internal/utils/token.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/server/internal/utils/token.go -------------------------------------------------------------------------------- /server/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/server/main.go -------------------------------------------------------------------------------- /server/makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/server/makefile -------------------------------------------------------------------------------- /server/sqlc.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/server/sqlc.yml -------------------------------------------------------------------------------- /server/test/custom_query_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanda0/vps_pilot/HEAD/server/test/custom_query_test.go -------------------------------------------------------------------------------- /tmp/build-errors.log: -------------------------------------------------------------------------------- 1 | exit status 1 --------------------------------------------------------------------------------