# console-core-go **Repository Path**: carlmax_my/console-core-go ## Basic Information - **Project Name**: console-core-go - **Description**: No description available - **Primary Language**: Go - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-12-02 - **Last Updated**: 2025-09-10 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## What is console-core-go? `console-core-go` is a modular design API framework based on [Gin](https://github.com/gin-gonic/gin), which encapsulates commonly used functions, is simple to use, and is committed to fast business Research and development, while adding more restrictions, restrict the development members of the project team, avoid chaos, disorder and free and arbitrary coding. Features: 1. Rate-limited APIs supported by [rate](https://golang.org/x/time/rate) 1. Email notification when panic occurs 1. Cross-Origin Resource Sharing supported by [cors](https://github.com/rs/cors) 1. Metrics monitoring and alerting by [Prometheus](https://github.com/prometheus/client_golang) 1. Automatically generate RESTful API documentation supported by [Swagger](https://github.com/swaggo/gin-swagger) 1. Trace project internal invoking 1. Visualized performance analysis supported by [pprof](https://github.com/gin-contrib/pprof) 1. Uniformly defined error codes supported by err-no 1. Blazing fast, structured, leveled logging system by [zap](https://go.uber.org/zap) 1. Complete configuration solution supported by [viper](https://github.com/spf13/viper) 1. Developer Friendly ORM library supported by [gorm](https://gorm.io/gorm) 1. Redis supported by [go-redis](https://github.com/redis/go-redis) 1. Standard RESTful API return value 1. CURD code generator , controller generator, etc. ## websocket hub https://github.com/eleven26/go-pusher ## winipcfg is copying from: golang.zx2c4.com/wireguard/windows golang.zx2c4.com/wireguard/windows/tunnel/winipcfg ## wireguard-go module netstack and tun: 特性 netstack(纯用户空间) TUN/TAP(内核接口) 网络栈位置 完全在用户空间实现 依赖内核网络栈 系统调用 无需特殊权限(除绑定端口外) 需要 root 权限或特殊 CAP_NET_ADMIN 权限 性能 略低(用户空间与内核数据拷贝) 略高(直接在内核处理) 跨平台兼容性 更好(不依赖特定内核接口) 需适配不同操作系统的 TUN/TAP 实现 典型应用场景 沙箱环境、无特权容器、简化网络配置 常规 VPN、需要与内核网络集成的场景 ## wgctrl 库是基于电脑上已经装了wireguard官方的客户端,所以用wgctrl来配置wireguard,基于wg0.conf文件 ## wireguard-go实现了用户态的wireguard协议,用ipcSet的方式管理配置,不是wg0.conf文件,他不需要这个文件