hfetcher

package
v0.9.7 Latest Latest
Warning

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

Go to latest
Published: May 31, 2022 License: MIT Imports: 4 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 *hookhandler.InitData) *HandlerFetcher

NewHandlerFetcher maintains a list of instantiated handlers, if not, instantiate it. Where as NewHandlerMap only handles hookhandler 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 hookhandler.RESTOp, hook string) []hookhandler.IHookhandler

FetchHandlersForOpAndHook fetches the releveant hookhandler for this method and hook. If there is any hookhandler whose first hook is this one, instantiate it. If there are already instantiated hookhandler which handles this hook, fetch it as well. hook can be JBAT

func (*HandlerFetcher) GetAllInstantiatedHanders

func (h *HandlerFetcher) GetAllInstantiatedHanders() []hookhandler.IHookhandler

func (*HandlerFetcher) HasAttemptRegisteringHandler

func (h *HandlerFetcher) HasAttemptRegisteringHandler() bool

func (*HandlerFetcher) HasRegisteredValidHandler

func (h *HandlerFetcher) HasRegisteredValidHandler() bool

Jump to

Keyboard shortcuts

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