event

package
v1.0.47 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Arg

type Arg struct {
	Type  string
	Value any
}

type Event

type Event interface {
	Handle(args []Arg) ([]Arg, error)
}

type Instance

type Instance interface {
	Register(map[Event][]Listener)
	Job(event Event, args []Arg) Task
	GetEvents() map[Event][]Listener
}

type Listener

type Listener interface {
	Signature() string
	Queue(args ...any) Queue
	Handle(args ...any) error
}

type Queue

type Queue struct {
	Enable     bool
	Connection string
	Queue      string
}

type Task

type Task interface {
	Dispatch() error
}

Jump to

Keyboard shortcuts

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