req

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: CC0-1.0, MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Envelope

type Envelope struct {
	SubscriptionID subscriptionid.T
	filters.T
}

Envelope is the wrapper for a query to a relay.

func (*Envelope) Bytes

func (E *Envelope) Bytes() (s []byte)

func (*Envelope) Label

func (E *Envelope) Label() (l string)

Label returns the label enum/type of the envelope. The relevant bytes could be retrieved using nip1.List[T]

func (*Envelope) MarshalJSON

func (E *Envelope) MarshalJSON() ([]byte, error)

func (*Envelope) String

func (E *Envelope) String() (s string)

func (*Envelope) ToArray

func (E *Envelope) ToArray() (arr array.T)

func (*Envelope) Unmarshal

func (E *Envelope) Unmarshal(buf *text.Buffer) (e error)

Unmarshal the envelope.

Jump to

Keyboard shortcuts

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