data

package
v0.7.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 3, 2026 License: MIT Imports: 7 Imported by: 0

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

func FetchAndCacheUserDataWithCoreClient(publicKey string) error

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.

func GetUserDataForSession

func GetUserDataForSession(publicKey string) (*nostr.Event, *core.Mailboxes, error)

GetUserDataForSession retrieves user metadata and mailboxes, using cache when possible

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL