Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/astercloud/aster
/ generateEventID
Function
generateEventID
pkg/security/audit.go:886–888 ·
view source on GitHub ↗
辅助函数
()
Source
from the content-addressed store, hash-verified
884
885
// 辅助函数
886
func
generateEventID() string {
887
return
fmt.Sprintf(
"audit_%d"
, time.Now().UnixNano())
888
}
889
890
func
containsAuditType(slice []AuditType, item AuditType) bool {
891
for
_, s :=
range
slice {
Callers
1
LogEvent
Method · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected