hook

package
v0.0.0-...-d125d34 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewInMemHook

func NewInMemHook(channelSize int, handlers ...EventHandler) hook.Hook

Types

type EventHandler

type EventHandler interface {
	Process(event *hook.EventCtx) error
}

type InMemHook

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

func (*InMemHook) Process

func (h *InMemHook) Process()

func (*InMemHook) Push

func (h *InMemHook) Push(ctx context.Context, event hook.Event)

func (*InMemHook) Stop

func (h *InMemHook) Stop()

func (*InMemHook) WaitStop

func (h *InMemHook) WaitStop()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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