event

package
v0.0.0-...-f13fc7a Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DummyFilter

func DummyFilter(topic string, payload []byte, filter map[string][]string) bool

func FilterEvent

func FilterEvent(instanceID, topic string, payload []byte) bool

func InitEvent

func InitEvent()

func Subscribe

func Subscribe(condition []string, instanceID string, filter map[string][]string) error

Subscribe 不支持 wildcard

func Unsubscribe

func Unsubscribe(condition []string, instanceID string) error

Unsubscribe 支持 wildcard

Types

type Filter

type Filter func(topic string, payload []byte, filter map[string][]string) bool

Jump to

Keyboard shortcuts

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