eventenvelope

package
v1.2.31 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 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) MarshalJSON

func (en *Result) MarshalJSON(dst by) (b by, err er)

func (*Result) UnmarshalJSON

func (en *Result) UnmarshalJSON(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) MarshalJSON

func (en *Submission) MarshalJSON(dst by) (b by, err er)

func (*Submission) UnmarshalJSON

func (en *Submission) UnmarshalJSON(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