Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HandlerMap ¶
type HandlerMap struct {
// contains filtered or unexported fields
}
func NewHandlerMap ¶
func NewHandlerMap() *HandlerMap
func (*HandlerMap) HasRegisteredAnyHandler ¶
func (c *HandlerMap) HasRegisteredAnyHandler() bool
func (*HandlerMap) InstantiateHandlersWithFirstHookAt ¶
func (c *HandlerMap) InstantiateHandlersWithFirstHookAt(method string, firstHook string) []hookhandler.IHookhandler
InstantiateHandlersWithFirstHookAt instantiate new hookhandler if in this method and in this hook we should instantiate a new hookhandler. The first available hook type of R is B The first available hook type for P is J
func (*HandlerMap) RegisterHandler ¶
func (c *HandlerMap) RegisterHandler(hdlr hookhandler.IHookhandler, restMethods string)
RegisterHandler restMethod is CRUPD in any combination hookTypes is JBAT in any combination (where J is before JSON apply) The first available hook type of R is B The first available hook type for P is J BAT CRUPD, ABT --> Initalized with CB CR, B --> Initialized at create before or read before UP, A --> Initialized at Update after or patch after D, A --> Initialied at delete after
Click to show internal directories.
Click to hide internal directories.