FallbackUser is the synthetic "local" user that UsageMiddleware uses to attribute requests when no authenticated user is on the context (i.e., --auth is off). nil when auth is on, since real users are always available there.
()
| 243 | // (i.e., --auth is off). nil when auth is on, since real users are |
| 244 | // always available there. |
| 245 | func (a *Application) FallbackUser() *auth.User { |
| 246 | return a.fallbackUser |
| 247 | } |
| 248 | |
| 249 | // PIIRedactor returns the regex-tier PII redactor or nil if PII |
| 250 | // filtering is disabled. The chat-route middleware uses this to apply |
no outgoing calls
no test coverage detected