userSync

package
v0.4.12 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const WebSocketTimeout = 15 * time.Second // Timeout for WebSocket responses

Variables

This section is empty.

Functions

func CheckIfUserExistsOnRelay

func CheckIfUserExistsOnRelay(pubKey, eventID string, relays []string) (bool, error)

CheckIfUserExistsOnRelay checks if a user exists on the relay by their pubkey.

func StartPeriodicUserSync

func StartPeriodicUserSync(cfg *cfgType.ServerConfig)

StartPeriodicUserSync periodically triggers user sync based on config interval

func UserSyncCheckCached

func UserSyncCheckCached(evt nostr.Event, cfg *cfgType.ServerConfig) (bool, error)

UserSyncCheckCached uses cached whitelist for sync decisions

Types

This section is empty.

Jump to

Keyboard shortcuts

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