hook

package module
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	// ModelHook returns a mutator registry for integration models associated with the given plugin ID.
	ModelHook(pluginID string) hook.Mutator[model.Model]

	// ModelEvent returns an event registry for integration models associated with the given plugin ID.
	ModelEvent(pluginID string) hook.Event[model.Model]

	// SQLSelectHook returns a mutator registry for SELECT SQL queries associated with the given plugin ID.
	SQLSelectHook(pluginID string) hook.Mutator[qb.SelectQuery]

	// SQLInsertHook returns a mutator registry for INSERT SQL queries associated with the given plugin ID.
	SQLInsertHook(pluginID string) hook.Mutator[qb.InsertQuery]

	// SQLUpdateHook returns a mutator registry for UPDATE SQL queries associated with the given plugin ID.
	SQLUpdateHook(pluginID string) hook.Mutator[qb.UpdateQuery]

	// SQLDeleteHook returns a mutator registry for DELETE SQL queries associated with the given plugin ID.
	SQLDeleteHook(pluginID string) hook.Mutator[qb.DeleteQuery]
}

Client defines the hook-aware client interface for working with Integration logic. Provides access to model-level and SQL-level mutators and event hooks.

Jump to

Keyboard shortcuts

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