hook

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 19, 2024 License: MIT Imports: 5 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddHook added in v0.0.3

func AddHook(name string, order int, handler func(), opts ...Option)

AddHook 注册回调

func DoHooks added in v0.0.3

func DoHooks(name string)

DoHooks 执行回调

Types

type Option

type Option func(*Options)

func WithInterval

func WithInterval(interval time.Duration) Option

WithInterval 定时执行

type Options

type Options struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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