hfetcher

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HandlerFetcher

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

func NewHandlerFetcher

func NewHandlerFetcher(handlerMap *handlermap.HandlerMap, initData *hook.InitData) *HandlerFetcher

NewHandlerFetcher maintains a list of instantiated handlers, if not, instantiate it. Where as NewHandlerMap only handles hook creation It doesn't care whether it's CRUPD, because the for each CRUPD a different HandlerFetcher is responsible.

func (*HandlerFetcher) FetchHandlersForOpAndHook

func (h *HandlerFetcher) FetchHandlersForOpAndHook(op rest.Op, hookstr string) []hook.IHook

FetchHandlersForOpAndHook fetches the releveant hook for this method and hookstr. If there is any hook whose first hookstr is this one, instantiate it. If there are already instantiated hook which handles this hookstr, fetch it as well. hookstr can be JBCATR (C is cache)

func (*HandlerFetcher) GetAllInstantiatedHanders

func (h *HandlerFetcher) GetAllInstantiatedHanders() []hook.IHook

Jump to

Keyboard shortcuts

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