package
0.0.0-20220531082357-66ffdaccb7f8
Repository: https://github.com/uouuou/servermanagersystem.git
Documentation: pkg.go.dev

# Functions

AutoInfo 计算auth参数.
CheckCommandExists 检查命令是否存在.
CheckIP 检测ipv4地址的合法性.
CheckProRunning 根据进程名判断进程是否运行.
ClashVersion 检测clash版本号.
Decimal 保留两位小数的方法.
ExecCommand 运行命令并实时查看运行结果.
ExecCommandNoErr 运行命令并获取结果.
ExecCommandWithResult 运行命令并获取结果(传入ERR).
FileExist 获取某个文件是否存在.
ForPid 获取linux应用程序运行id.
ForPids 获取linux应用程序运行id(可能有多个).
ForPidString 获取linux应用程序运行id(可能有多个).
FrpVersion 检测Frp版本号.
GetCurrentDirectory 程序运行路径.
GetLocalIP 获取本机ipv4地址.
GetPid 根据进程名称获取进程ID.
InstallPack 安装指定名字软件.
IsExists 检测指定路径文件或者文件夹是否存在.
Md5V 生成32位md5字串.
No description provided by the author
NewRoutine 采用提前recover的方式终止因为goroutine错误导致的整体崩溃.
NpsVersion 检测nps版本号.
OpenPort 开通指定端口.
PortIsUse 判断端口是否占用.
RandomPort 获取没占用的随机端口.
RunCommand 检测操作系统决定在哪里运行cmd.
RunWebShell 运行网上的脚本.
SendMail 有错误的时候发送邮件到邮箱提醒.
SendServerJan 使用server酱的接口发送推送消息到微信.
SetTime 使用阿里云NTP服务器校准时间.
SystemVersion 系统的一些打包显示参数.
TestReadable 测试操作系统是否为可读操作系统.
UpdateSystemDate 更新操作系统时间.

# Constants

No description provided by the author

# Variables

应用名称.
程序版本.
编译时间.
编译版本.
Git分支.
Git版本.
Golang信息.

# Structs

Config 读取config文件.
ConfigNat NAT系统配置表.
Menu 系统菜单控制.
Model GormMode修正.
Ntp* NTP协议 http://www.ntp.org/documentation.html @author [email protected] */.
No description provided by the author
Sub 订阅数据结构体.
SubSet 订阅设置.
Update 客户端更新.
User 用户基本信息.

# Type aliases

Time 系统内部的时间格式化 MarshalJSON规范JSON时涉及到的时间格式 Scan Gorm的情况下查询时的时间格式化 Value Gorm情况下写入数据时的时间格式化 String 当时间是string的情况下格式化时间 UnmarshalJSON 在 c.ShouldBindJSON 时,会调用 field.UnmarshalJSON 方法.