userSync

package
v0.3.31-hotfix Latest Latest
Warning

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

Go to latest
Published: May 23, 2025 License: MIT Imports: 15 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 *configTypes.ServerConfig)

Periodically triggers user sync based on config interval.

func UserSyncCheck

func UserSyncCheck(evt nostr.Event, cfg *configTypes.ServerConfig) (bool, error)

UserSyncCheck determines if a user is new and triggers the initial sync if necessary.

Types

This section is empty.

Jump to

Keyboard shortcuts

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