admin/

directory
v0.0.0-...-6cf1638 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: MulanPSL-2.0

README

admin 模块

功能

系统的控制中心。它整合了网关管理、日志检索、链路追踪、监控告警、节点管理、容器管理等功能,让管理员能够直观地监控和控制整个系统。 在应用性能管理和监控领域,logs(日志)、traces(跟踪/追踪)和metrics(度量/指标)是三个非常重要的数据。

技术栈

# gin https://gin-gonic.com/
主要优点:
支持中间件操作( handlersChain 机制 )
更方便的使用( gin.Context )
更强大的路由解析能力( radix tree 路由树 )
# gorm https://gorm.io/zh_CN/docs/
# viper
# JWT
优点:轻量级,无需频繁访问服务器来验证用户身份
缺点:安全性问题,除非过期,否则无法被服务器撤销或更改

# oauth2: 租户管理
四种模式,基于JWT凭证模式
https://blog.csdn.net/qq_22321199/article/details/137503676

# redis 
1. 网关的日请求量(昨日和今日按时统计),QPS 从缓存读取
2. 各业务请求量和QPS 从缓存读取
3. redis的数据结构及使用场景
https://blog.csdn.net/qq_22321199/article/details/138151570

# etcd 注册中心,注册Admin服务,发现Gateway的地址

Directories

Path Synopsis
internal
dao
dto

Jump to

Keyboard shortcuts

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