Documentation ¶
Index ¶
- type HandlerFetcher
- func (h *HandlerFetcher) FetchHandlersForOpAndHook(op hookhandler.RESTOp, hook string) []hookhandler.IHookhandler
- func (h *HandlerFetcher) GetAllInstantiatedHanders() []hookhandler.IHookhandler
- func (h *HandlerFetcher) HasAttemptRegisteringHandler() bool
- func (h *HandlerFetcher) HasRegisteredValidHandler() bool
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
Click to show internal directories.
Click to hide internal directories.