event

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2022 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 interface{}
}

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 ...interface{}) Queue
	Handle(args ...interface{}) error
}

type Queue

type Queue struct {
	Enable     bool
	Connection string
	Queue      string
}

type Task

type Task interface {
	Dispatch() error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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