MCPcopy Create free account
hub / github.com/astercloud/aster / generateEventID

Function generateEventID

pkg/session/session.go:286–289  ·  view source on GitHub ↗

generateEventID 生成事件 ID

()

Source from the content-addressed store, hash-verified

284
285// generateEventID 生成事件 ID
286func generateEventID() string {
287 // 实现 ID 生成逻辑
288 return "evt_" + time.Now().Format("20060102150405")
289}
290
291// IsAppKey 判断是否为应用级 key
292func IsAppKey(key string) bool {

Callers 2

TestGenerateEventIDFunction · 0.70
NewEventFunction · 0.70

Calls

no outgoing calls

Tested by 1

TestGenerateEventIDFunction · 0.56