hooks

package
v0.7.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HookFunc

type HookFunc struct {
	Name string
	Fn   func(context.Context) error
}

type Hooker

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

func New

func New() *Hooker

func (*Hooker) Add

func (k *Hooker) Add(d HookFunc)

Add adds a hook function to the Kod instance.

func (*Hooker) Do

func (k *Hooker) Do(ctx context.Context)

Do runs the hook functions in reverse order.

Jump to

Keyboard shortcuts

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