event

package
v0.0.0-...-ddd1a7f Latest Latest
Warning

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

Go to latest
Published: May 2, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IndexDataKey = "publisher"
)

Publisher

View Source
const (
	Normal = event.Normal
)
View Source
const (
	TopicFileUploadComplete = "file.upload.complete"
)

Variables

This section is empty.

Functions

func Publish

func Publish(topic string, data any)

func Subscriber

func Subscriber(name string, listener Listener, priority ...int)

Types

type Listener

type Listener = event.Listener

Subscriber

type ListenerFunc

type ListenerFunc = event.ListenerFunc

Subscriber

Jump to

Keyboard shortcuts

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