hooks

package
v0.0.1-79 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 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 AnalyticsHookManager

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

AnalyticsHookManager implements a tree of hooks which can handle an analytics request.

func (*AnalyticsHookManager) Add

Add adds a new hook at the end of the processing chain.

func (*AnalyticsHookManager) Child

Child returns a child hook manager to this hook manager.

func (*AnalyticsHookManager) Destroy

func (m *AnalyticsHookManager) Destroy()

Destroy removes all hooks that were added to this manager.

func (*AnalyticsHookManager) Invoke

Invoke will invoke this hook chain. It starts at the most recently registered hook and works it's way to the oldest hook.

func (*AnalyticsHookManager) PushDestroyer

func (m *AnalyticsHookManager) PushDestroyer(fn func())

type KvHookManager

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

KvHookManager implements a tree of hooks which can handle a kv packet.

func (*KvHookManager) Add

func (m *KvHookManager) Add(fn mock.KvHookFunc)

Add adds a new hook at the end of the processing chain.

func (*KvHookManager) Child

func (m *KvHookManager) Child() mock.KvHookManager

Child returns a child hook manager to this hook manager.

func (*KvHookManager) Destroy

func (m *KvHookManager) Destroy()

Destroy removes all hooks that were added to this manager.

func (*KvHookManager) Invoke

func (m *KvHookManager) Invoke(source mock.KvClient, pak *memd.Packet) bool

Invoke will invoke this hook chain. It starts at the most recently registered hook and works it's way to the oldest hook. It returns whether the end of the hook chain was reached or not.

func (*KvHookManager) PushDestroyer

func (m *KvHookManager) PushDestroyer(fn func())

type MgmtHookManager

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

MgmtHookManager implements a tree of hooks which can handle a mgmt request.

func (*MgmtHookManager) Add

func (m *MgmtHookManager) Add(fn mock.MgmtHookFunc)

Add adds a new hook at the end of the processing chain.

func (*MgmtHookManager) Child

Child returns a child hook manager to this hook manager.

func (*MgmtHookManager) Destroy

func (m *MgmtHookManager) Destroy()

Destroy removes all hooks that were added to this manager.

func (*MgmtHookManager) Invoke

Invoke will invoke this hook chain. It starts at the most recently registered hook and works it's way to the oldest hook.

func (*MgmtHookManager) PushDestroyer

func (m *MgmtHookManager) PushDestroyer(fn func())

type QueryHookManager

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

QueryHookManager implements a tree of hooks which can handle a query request.

func (*QueryHookManager) Add

func (m *QueryHookManager) Add(fn mock.QueryHookFunc)

Add adds a new hook at the end of the processing chain.

func (*QueryHookManager) Child

Child returns a child hook manager to this hook manager.

func (*QueryHookManager) Destroy

func (m *QueryHookManager) Destroy()

Destroy removes all hooks that were added to this manager.

func (*QueryHookManager) Invoke

Invoke will invoke this hook chain. It starts at the most recently registered hook and works it's way to the oldest hook.

func (*QueryHookManager) PushDestroyer

func (m *QueryHookManager) PushDestroyer(fn func())

type SearchHookManager

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

SearchHookManager implements a tree of hooks which can handle a search request.

func (*SearchHookManager) Add

Add adds a new hook at the end of the processing chain.

func (*SearchHookManager) Child

Child returns a child hook manager to this hook manager.

func (*SearchHookManager) Destroy

func (m *SearchHookManager) Destroy()

Destroy removes all hooks that were added to this manager.

func (*SearchHookManager) Invoke

Invoke will invoke this hook chain. It starts at the most recently registered hook and works it's way to the oldest hook.

func (*SearchHookManager) PushDestroyer

func (m *SearchHookManager) PushDestroyer(fn func())

type ViewHookManager

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

ViewHookManager implements a tree of hooks which can handle a view request.

func (*ViewHookManager) Add

func (m *ViewHookManager) Add(fn mock.ViewHookFunc)

Add adds a new hook at the end of the processing chain.

func (*ViewHookManager) Child

Child returns a child hook manager to this hook manager.

func (*ViewHookManager) Destroy

func (m *ViewHookManager) Destroy()

Destroy removes all hooks that were added to this manager.

func (*ViewHookManager) Invoke

Invoke will invoke this hook chain. It starts at the most recently registered hook and works it's way to the oldest hook.

func (*ViewHookManager) PushDestroyer

func (m *ViewHookManager) PushDestroyer(fn func())

Jump to

Keyboard shortcuts

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