closedenvelope

package
v1.9.11 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2025 License: Unlicense Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const L = "CLOSED"

Variables

This section is empty.

Functions

This section is empty.

Types

type T

type T struct {
	Subscription *subscription.Id
	Reason       []byte
}

func New

func New() *T

func NewFrom

func NewFrom(id *subscription.Id, msg []byte) *T

func Parse

func Parse(b []byte) (t *T, rem []byte, err error)

func (*T) Label

func (en *T) Label() string

func (*T) Marshal

func (en *T) Marshal(dst []byte) (b []byte)

func (*T) ReasonString

func (en *T) ReasonString() string

func (*T) Unmarshal

func (en *T) Unmarshal(b []byte) (r []byte, err error)

func (*T) Write

func (en *T) Write(w io.Writer) (err error)

Jump to

Keyboard shortcuts

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