okenvelope

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2024 License: CC0-1.0 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 B

type B = []byte

type E

type E = error

type S

type S = string

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) UnmarshalJSON

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

func (*T) Write

func (en *T) Write(ws enveloper.Writer) (err E)

Jump to

Keyboard shortcuts

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