Documentation
¶
Overview ¶
Package event defines the audit event sink for security-relevant auth events.
Index ¶
Constants ¶
View Source
const ( TypeLoginSuccess = "login.success" TypeLoginFailure = "login.failure" TypeLockout = "lockout" TypeTokenIssued = "token.issued" TypeTokenRevoked = "token.revoked" TypeSessionRevoked = "session.revoked" )
Well-known event types.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event struct {
Type string
UserID string
ClientID string
IP string
At time.Time
Detail map[string]any
}
Event is one security-relevant occurrence for audit/SIEM.
Click to show internal directories.
Click to hide internal directories.