MCPcopy Create free account
hub / github.com/dan-v/lambda-nat-proxy / GenerateTimestampID

Function GenerateTimestampID

pkg/shared/utils.go:23–27  ·  view source on GitHub ↗

GenerateTimestampID creates a session ID based on current time as fallback

()

Source from the content-addressed store, hash-verified

21
22// GenerateTimestampID creates a session ID based on current time as fallback
23func GenerateTimestampID() string {
24 // Use nanosecond timestamp as fallback ID
25 timestamp := time.Now().UnixNano()
26 return hex.EncodeToString([]byte(fmt.Sprintf("%d", timestamp)))
27}

Callers 1

GenerateSessionIDFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected