okenvelope

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2024 License: CC0-1.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

View Source
const (
	L = "OK"
)

Variables

This section is empty.

Functions

func Parse added in v0.1.4

func Parse(b B) (t *T, rem B, err E)

Types

type T

type T struct {
	EventID *eventid.T
	OK      bool
	Reason  B
}

func New

func New() *T

func NewFrom

func NewFrom(eid *eventid.T, ok bool, msg B) *T

func (*T) Label

func (en *T) Label() string

func (*T) MarshalJSON

func (en *T) MarshalJSON(dst B) (b B, err error)

func (*T) ReasonString added in v0.1.4

func (en *T) ReasonString() string

func (*T) UnmarshalJSON

func (en *T) UnmarshalJSON(b B) (r B, err error)

func (*T) Write

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

Jump to

Keyboard shortcuts

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