eagle-eye

module
v0.0.0-...-179e57f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 8, 2022 License: Apache-2.0

README

EagleEye

基于ginadmin后台脚手架开发的针对Miner的管理系统,目前仅供自用,适配性还不足。

TBD .. Include 2 modules:

  • eagle: server
  • collect: a tool for collecting miner data

How To Use

  1. Edit eagle-eye/configs/config.ini and choose database
mysql -u [user] -p [database name]< xxx.sql
  1. edit all route / controller / services / models ...

  2. build server and run

cd eagle-eye/cmd/eagle/
go mod tidy; go build

EagleEye Server

1. 后台功能

Jump to:

http://localhost:9099/admin/login
http://localhost:9099/admin/home

业务开发

// 1.1 页面注册
eagle-eye/internal/menu/menu.go

// 1.2 路由注册
eagle-eye/internal/router/admin_router.go

// 1.3 资源路径
eagle-eye/internal/controllers/admin/miner/ironController.go
   // 数据结构定义
   eagle-eye/internal/models/Miner.go
   // 定义getMiners实现方法
   eagle-eye/internal/services/admin/minerService.go
   // db
   eagle-eye/internal/dao/minerDao.go

// 1.4 前端页面   
eagle-eye/web/views/template/miner/miner.html
2. 接收采集数据的api
http://localhost:9099/admin/miner/postjson

// 2.1 路由注册
eagle-eye/internal/router/admin_router.go  

// 2.2 定义数据结构、与mysql增删改查模块
eagle-eye/internal/models/Miner.go
eagle-eye/internal/database

// 2.2 控制器配置
eagle-eye/internal/controllers/admin/miner/ironController.go

EagleEye Collector

Collect data from miner, quick start:

// main
eagle-eye/cmd/collect/collect.go

// collect miner and system infos
eagle-eye/internal/collector
eagle-eye/pkg/tools

Directories

Path Synopsis
cmd
eagle
* @Description: * @Author: gphper * @Date: 2021-06-01 20:15:04
* @Description: * @Author: gphper * @Date: 2021-06-01 20:15:04
* @Description: * @Author: gphper * @Date: 2021-08-24 19:42:52
* @Description: * @Author: gphper * @Date: 2021-08-24 19:42:52
controllers
* @Description: * @Author: gphper * @Date: 2022-03-18 19:51:55
* @Description: * @Author: gphper * @Date: 2022-03-18 19:51:55
controllers/admin/article
* @Description: * @Author: gphper * @Date: 2021-10-17 14:18:10
* @Description: * @Author: gphper * @Date: 2021-10-17 14:18:10
controllers/admin/miner
* @Description: * @Author: gphper * @Date: 2021-10-17 14:18:10
* @Description: * @Author: gphper * @Date: 2021-10-17 14:18:10
controllers/admin/upload
* @Description: * @Author: gphper * @Date: 2021-10-20 20:03:25
* @Description: * @Author: gphper * @Date: 2021-10-20 20:03:25
controllers/api
* @Description: * @Author: gphper * @Date: 2021-07-15 21:51:07
* @Description: * @Author: gphper * @Date: 2021-07-15 21:51:07
controllers/api/user
* @Description: * @Author: gphper * @Date: 2021-04-18 19:07:39
* @Description: * @Author: gphper * @Date: 2021-04-18 19:07:39
dao
* @Description: * @Author: gphper * @Date: 2022-03-15 20:14:09
* @Description: * @Author: gphper * @Date: 2022-03-15 20:14:09
middleware
* @Description:后台管理中间件 * @Author: gphper * @Date: 2021-07-04 11:58:45
* @Description:后台管理中间件 * @Author: gphper * @Date: 2021-07-04 11:58:45
models
* @Description:用户相关model * @Author: gphper * @Date: 2021-07-04 11:58:45
* @Description:用户相关model * @Author: gphper * @Date: 2021-07-04 11:58:45
redis
* @Description: * @Author: gphper * @Date: 2021-08-20 20:46:25
* @Description: * @Author: gphper * @Date: 2021-08-20 20:46:25
router
* @Description: * @Author: gphper * @Date: 2021-07-13 19:45:15
* @Description: * @Author: gphper * @Date: 2021-07-13 19:45:15
services/admin
* @Description:用户组服务 * @Author: gphper * @Date: 2021-07-17 21:03:55
* @Description:用户组服务 * @Author: gphper * @Date: 2021-07-17 21:03:55
services/api
* @Description: * @Author: gphper * @Date: 2021-12-22 09:55:12
* @Description: * @Author: gphper * @Date: 2021-12-22 09:55:12
pkg
captcha/store
* @Description: * @Author: gphper * @Date: 2021-08-28 21:37:22
* @Description: * @Author: gphper * @Date: 2021-08-28 21:37:22
casbinauth
* @Description:casbin方法二次封装 * @Author: gphper * @Date: 2021-07-20 20:52:20
* @Description:casbin方法二次封装 * @Author: gphper * @Date: 2021-07-20 20:52:20
cron
* @Description: * @Author: gphper * @Date: 2021-10-19 19:51:15
* @Description: * @Author: gphper * @Date: 2021-10-19 19:51:15
jwt
* @Description: * @Author: gphper * @Date: 2021-12-22 14:43:08
* @Description: * @Author: gphper * @Date: 2021-12-22 14:43:08
loggers
* @Description: * @Author: gphper * @Date: 2021-08-22 21:45:43
* @Description: * @Author: gphper * @Date: 2021-08-22 21:45:43
loggers/facade
* @Description: * @Author: gphper * @Date: 2021-08-22 12:19:59
* @Description: * @Author: gphper * @Date: 2021-08-22 12:19:59
loggers/medium
* @Description: * @Author: gphper * @Date: 2021-08-22 12:49:26
* @Description: * @Author: gphper * @Date: 2021-08-22 12:49:26
loggers/newer
* @Description: * @Author: gphper * @Date: 2021-07-10 09:59:02
* @Description: * @Author: gphper * @Date: 2021-07-10 09:59:02
paginater
* @Description: * @Author: gphper * @Date: 2022-03-27 11:02:04
* @Description: * @Author: gphper * @Date: 2022-03-27 11:02:04
template
* @Description: * @Author: gphper * @Date: 2021-07-04 11:58:44
* @Description: * @Author: gphper * @Date: 2021-07-04 11:58:44
uploader
* @Description: * @Author: gphper * @Date: 2021-07-18 18:30:28
* @Description: * @Author: gphper * @Date: 2021-07-18 18:30:28
utils/filesystem
* @Description: * @Author: gphper * @Date: 2022-03-27 10:57:10
* @Description: * @Author: gphper * @Date: 2022-03-27 10:57:10
utils/httptestutil
* @Description: * @Author: gphper * @Date: 2022-03-31 20:43:41
* @Description: * @Author: gphper * @Date: 2022-03-31 20:43:41
utils/strings
* @Description: * @Author: gphper * @Date: 2022-03-27 10:58:44
* @Description: * @Author: gphper * @Date: 2022-03-27 10:58:44
validator
* @Description: * @Author: gphper * @Date: 2022-03-27 11:06:16
* @Description: * @Author: gphper * @Date: 2022-03-27 11:06:16
* @Description:部署拷贝静态文件时忽略该文件 * @Author: gphper * @Date: 2021-07-31 10:59:00
* @Description:部署拷贝静态文件时忽略该文件 * @Author: gphper * @Date: 2021-07-31 10:59:00

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL