test

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	ID string
}

type Events

type Events interface {
	// Event dispatches an Event event.
	Event(event Event)

	// EventWithContext accepts a context too.
	EventWithContext(ctx context.Context, event Event)

	// EventWithContextAndError combines the features of EventWithContext and EventWithError.
	EventWithContextAndError(ctx context.Context, event Event) error

	// EventWithError returns an error when something goes wrong during dispatching the event.
	EventWithError(event Event) error
}

go:generate go run sagikazarmark.dev/mga generate event dispatcher --outdir . Events +mga:event:dispatcher

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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