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 ¶
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
Click to show internal directories.
Click to hide internal directories.