- 核心功能:监控SSH登录事件,检测root登录 - 日志解析:集成systemd journal实时监控 - 告警系统:支持root登录告警和通道处理 - 项目结构:规范的Go项目布局 - 文档:完善README使用说明"
8 lines
191 B
Go
8 lines
191 B
Go
package config
|
|
|
|
type SSHMonitor struct {
|
|
Enabled bool `yaml:"enabled"`
|
|
DisplayOnShell bool `yaml:"display_on_shell"`
|
|
AlertOnRootLogin bool `yaml:"alert_on_root_login"`
|
|
}
|