Documentation
¶
Overview ¶
Package avatar provides perceptual hashing for profile avatars.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Hash ¶
func Hash(ctx context.Context, cache httpcache.Cacher, avatarURL string, logger *slog.Logger) uint64
Hash fetches an avatar image and computes its perceptual hash. Returns 0 on any error (network, decode, unsupported format). Uses the provided cache for HTTP responses (raw image bytes are cached).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.