callback

package
v2.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 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 Callback

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

func InitializeCallbacks added in v2.2.0

func InitializeCallbacks() *Callback

func (*Callback) AfterDelete added in v2.2.0

func (c *Callback) AfterDelete() []callbackHandler

func (*Callback) AfterFind added in v2.2.0

func (c *Callback) AfterFind() []callbackHandler

func (*Callback) AfterInsert added in v2.2.0

func (c *Callback) AfterInsert() []callbackHandler

func (*Callback) AfterUpdate added in v2.2.0

func (c *Callback) AfterUpdate() []callbackHandler

func (*Callback) AfterUpsert added in v2.2.0

func (c *Callback) AfterUpsert() []callbackHandler

func (*Callback) BeforeDelete added in v2.2.0

func (c *Callback) BeforeDelete() []callbackHandler

func (*Callback) BeforeFind added in v2.2.0

func (c *Callback) BeforeFind() []callbackHandler

func (*Callback) BeforeInsert added in v2.2.0

func (c *Callback) BeforeInsert() []callbackHandler

func (*Callback) BeforeUpdate added in v2.2.0

func (c *Callback) BeforeUpdate() []callbackHandler

func (*Callback) BeforeUpsert added in v2.2.0

func (c *Callback) BeforeUpsert() []callbackHandler

func (*Callback) Execute

func (c *Callback) Execute(ctx context.Context, opCtx *operation.OpContext, opType operation.OpType, opts ...any) error

func (*Callback) Register

func (c *Callback) Register(opType operation.OpType, name string, fn CbFn)

func (*Callback) Remove

func (c *Callback) Remove(opType operation.OpType, name string)

type CbFn

type CbFn func(ctx context.Context, opCtx *operation.OpContext, opts ...any) error

Jump to

Keyboard shortcuts

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