Documentation
¶
Index ¶
Constants ¶
View Source
const Prefix = "[auth-token]"
Variables ¶
This section is empty.
Functions ¶
func Endpoint ¶
Endpoint returns only the host and path of a URL. Userinfo, query, and fragments are deliberately discarded.
func SafeUserID ¶
SafeUserID returns a sanitized canonical identifier and suppresses values that look like credential or configuration URLs.
Types ¶
type Event ¶
type Event struct {
Op string
UserID string
Provider string
Caller string
ScheduleID string
RunID string
Endpoint string
HTTPStatus int
OAuthErrorCode string
Classification string
Action string
Elapsed time.Duration
Recovered bool
Err error
}
Event is a safe, stable token-lifecycle log record. Empty fields remain present in the log so automated searches can rely on a consistent shape.
Click to show internal directories.
Click to hide internal directories.