Documentation
¶
Index ¶
- func CreateRecord(username, module, action, target, targetUuid, detail, sourceIp string) error
- func GetSourceIp(c *gin.Context) string
- func GetUsername(c *gin.Context) string
- func List(c *gin.Context, in *ListRequest)
- func LogWithContext(c *gin.Context, module, action, target, targetUuid, detail string)
- type ListRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateRecord ¶
CreateRecord 创建审计日志记录
func LogWithContext ¶
LogWithContext 使用 gin.Context 自动提取用户名和来源 IP 并记录审计日志
Types ¶
Click to show internal directories.
Click to hide internal directories.