eventenvelope

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: Unlicense Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const L = "EVENT"

Variables

This section is empty.

Functions

This section is empty.

Types

type Result

type Result struct {
	Subscription *subscription.Id
	Event        *event.T
}

Result is an event matching a filter associated with a subscription.

func NewResult

func NewResult() *Result

func NewResultWith

func NewResultWith[V st | by](s V, ev *event.T) (res *Result, err er)

func ParseResult

func ParseResult(b by) (t *Result, rem by, err er)

func (*Result) Label

func (en *Result) Label() st

func (*Result) Marshal added in v1.2.40

func (en *Result) Marshal(dst by) (b by)

func (*Result) Unmarshal added in v1.2.40

func (en *Result) Unmarshal(b by) (r by, err er)

func (*Result) Write

func (en *Result) Write(w io.Writer) (err er)

type Submission

type Submission struct {
	*event.T
}

Submission is a request from a client for a realy to store an event.

func NewSubmission

func NewSubmission() *Submission

func NewSubmissionWith

func NewSubmissionWith(ev *event.T) *Submission

func ParseSubmission

func ParseSubmission(b by) (t *Submission, rem by, err er)

func (*Submission) Label

func (en *Submission) Label() string

func (*Submission) Marshal added in v1.2.40

func (en *Submission) Marshal(dst by) (b by)

func (*Submission) Unmarshal added in v1.2.40

func (en *Submission) Unmarshal(b by) (r by, err er)

func (*Submission) Write

func (en *Submission) Write(w io.Writer) (err er)

Jump to

Keyboard shortcuts

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