Documentation
¶
Overview ¶
Package util provides shared utility functions for the llm-router framework.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateID ¶
GenerateID returns a cryptographically secure 16-byte hex string (32 characters). Used for database record IDs across all services.
func GenerateToken ¶
GenerateToken returns a cryptographically secure 32-byte hex string (64 characters). Used for session tokens and router tokens that require higher entropy.
func HashSecret ¶
HashSecret produces a deterministic SHA-256 hex digest of a secret string. Used for storing hashed tokens in the database.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.