okenvelope

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2025 License: Unlicense Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	L = "OK"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type T

type T struct {
	EventID *eventid.T
	OK      bool
	Reason  []byte
}

func New

func New() *T

func NewFrom

func NewFrom[V string | []byte](eid V, ok bool, 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