hooks

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddAction

func AddAction(channel string, callback Callback) (err error)

func AddFilter

func AddFilter(channel string, callback Callback)

func ApplyFilters

func ApplyFilters[T any](channel string, data T, args ...any) (value T, err error)

func DoActions

func DoActions(channel string, args ...any) (err error)

func HasAction

func HasAction(channel string) bool

func HasFilter

func HasFilter(channel string) bool

Types

type Callback

type Callback any

Jump to

Keyboard shortcuts

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