Documentation
¶
Overview ¶
Package botidentity resolves the authoritative lifecycle identity behind a bot UID. It deliberately reads only the robot and app_bot tables: user.robot is presentation metadata and is not an authorization source.
Index ¶
Constants ¶
View Source
const ( KindUserBot Kind = "user_bot" KindAppBot Kind = "app_bot" // ScopePlatform and ScopeSpace are the authoritative app_bot.scope values. ScopePlatform = "platform" ScopeSpace = "space" )
Variables ¶
View Source
var ( // ErrAmbiguousIdentity indicates a broken cross-table uniqueness invariant. // Callers must fail closed rather than silently choosing one bot kind. ErrAmbiguousIdentity = errors.New("ambiguous bot identity") ErrResolverUnavailable = errors.New("bot identity resolver unavailable") )
Functions ¶
This section is empty.
Types ¶
type Resolver ¶
type Resolver struct {
// contains filtered or unexported fields
}
Resolver performs live authoritative lookups. It intentionally has no package-level cache; consumers that need presentation caching own it locally.
Click to show internal directories.
Click to hide internal directories.