hook

package
v2.4.5 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RecommendCleanHookMap = make(map[string]int)
View Source
var RecommendCleanHooks = make([]RecommendCleanHookFunc, 0)

Functions

func AddRecommendCleanHook

func AddRecommendCleanHook(hf ...RecommendCleanHookFunc)

func RegisterRecommendCleanHook added in v2.2.7

func RegisterRecommendCleanHook(name string, hf RecommendCleanHookFunc)

func RemoveRecommendCleanHook added in v2.4.0

func RemoveRecommendCleanHook(name string)

Types

type RecommendCleanHookFunc

type RecommendCleanHookFunc func(context *context.RecommendContext, params ...interface{})

Jump to

Keyboard shortcuts

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