Documentation
¶
Overview ¶
Package resolver provides RecipientResolver and UserResolver implementations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Static ¶
type Static struct {
// contains filtered or unexported fields
}
Static is a map-based RecipientResolver for testing and simple deployments. It resolves user IDs from an in-memory map. Safe for concurrent use (read-only after creation).
func NewStatic ¶
NewStatic creates a Static resolver from a map of user ID to Recipient. The map is copied to prevent external mutation.
type StaticUserResolver ¶ added in v0.7.1
type StaticUserResolver struct {
// contains filtered or unexported fields
}
StaticUserResolver is a map-based UserResolver for testing and simple deployments. It resolves user IDs from an in-memory map. Safe for concurrent use (read-only after creation).
func NewStaticUserResolver ¶ added in v0.7.1
func NewStaticUserResolver(users map[string]*UserEntry) *StaticUserResolver
NewStaticUserResolver creates a StaticUserResolver from a map of user ID to UserEntry. The map is copied to prevent external mutation.
func (*StaticUserResolver) ResolveUser ¶ added in v0.7.1
ResolveUser returns the full User principal for a given user ID.
type UserEntry ¶ added in v0.7.1
type UserEntry struct {
FirstName string
LastName string
Email string
Type string // "human" | "agent" | "service" | ""
PublicKey string // Ed25519 base64-encoded; empty for humans
Capabilities map[string]string // skills, endpoint, region, model, …
}
UserEntry holds user identity and capability fields for StaticUserResolver.