envelopes

package
v1.2.14 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: GPL-2.0, MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProcessEnvelope

func ProcessEnvelope(b []byte) (env enveloper.I, buf *text.Buffer, err error)

ProcessEnvelope scans a message and if it finds a correctly formed enveloper.I it unmarshals it and returns it.

If it fails, it also returns the label bytes found and the buffer, which will have the cursor at the next byte after the quote delimiter of the T, ready for some other envelope outside of nip-01 to decode.

Types

This section is empty.

Jump to

Keyboard shortcuts

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