Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Identify ¶
Identify takes a byte slice and scans it as a nostr Envelope array, and returns the label type and a text.Buffer that is ready for the Read function to generate the appropriate structure.
func Read ¶
Read performs a second stage process after Identify that allocates a proper data structure for the Unmarshal function to populate with the remainder of the buffer.
This function exists because of the count and auth envelopes that have one label but two distinct structures - they are different by the role of the sender but need extra scanning to distinguish between them.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.