Skip to main content

Module username_service

Module username_service 

Source
Expand description

Username service – Postgres CRUD with optional Redis cache/publish.

Each wallet can set exactly one display name. Usernames are unique case-insensitively (stored as-is, compared via LOWER()).

Structs§

UsernameService

Enums§

UsernameServiceError
Errors from username write operations that callers can pattern-match on.

Constants§

MAX_LEN 🔒
Maximum username length.
MIN_LEN 🔒
Minimum username length.
RESERVED_USERNAMES 🔒

Functions§

redis_reverse_key 🔒
redis_wallet_key 🔒
validate_username
Validate a username against the platform rules.