MCPcopy 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// 辅助函数
886func generateEventID() string {
887 return fmt.Sprintf("audit_%d", time.Now().UnixNano())
888}
889
890func containsAuditType(slice []AuditType, item AuditType) bool {
891 for _, s := range slice {

Callers 1

LogEventMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected