Documentation
¶
Overview ¶
Package principal carries the request's resolved principal — the consumer's own caller type (its authorization model) — in a context.Context. It is the principal sibling of core/tenant: a transport interceptor stores the principal once per request, and every lower tier (services, repositories) reads it here without importing the transport.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrincipalFrom ¶
PrincipalFrom returns the caller's principal of type P. The bool is false (and P is its zero value) when the context is nil or holds no principal of that type.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.