Documentation
¶
Index ¶
- func SendClosed(client nostr.ClientInterface, subID string, message string)
- func SendCount(client nostr.ClientInterface, subID string, count int, approximate bool)
- func SendNotice(client nostr.ClientInterface, pubKey, message string)
- func SendOK(client nostr.ClientInterface, eventID string, status bool, message string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SendClosed ¶
func SendClosed(client nostr.ClientInterface, subID string, message string)
SendClosed sends a "CLOSED" response to the client
func SendCount ¶ added in v0.6.0
func SendCount(client nostr.ClientInterface, subID string, count int, approximate bool)
SendCount sends a NIP-45 COUNT response to the client. When approximate is true, the relay signals that the count may not be exact (e.g. capped at countHardCap or the result of a multi-filter request).
func SendNotice ¶
func SendNotice(client nostr.ClientInterface, pubKey, message string)
SendNotice sends a notice message to the client
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.