Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureBackgroundFetch ¶ added in v0.7.0
func EnsureBackgroundFetch(publicKey string)
EnsureBackgroundFetch kicks a deduplicated user-data fetch and returns immediately — login and the cache endpoint use it so neither blocks on cold outbox relays. Safe to call repeatedly.
func FetchAndCacheUserDataWithCoreClient ¶
FetchAndCacheUserDataWithCoreClient fetches user data using the core client
func FetchUserDataDeduped ¶ added in v0.7.0
func FetchUserDataDeduped(publicKey string)
FetchUserDataDeduped fetches + caches the user's data, collapsing concurrent calls for the same pubkey into a single fetch. It BLOCKS until the in-flight fetch finishes, so call it from a goroutine when you don't want to wait.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.