handlermap

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 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 HandlerMap

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

func NewHandlerMap

func NewHandlerMap() *HandlerMap

func (*HandlerMap) GetHandlerTypeAndArgWithFirstHookAt added in v0.9.5

func (h *HandlerMap) GetHandlerTypeAndArgWithFirstHookAt(method string, firstHook string) []HandlerTypeAndArgs

GetHandlerTypeAndArgWithFirstHookAt obtains relevant handler and args if in this method and in this hook we should instantiate a new hook. The first available hook type of R is B The first available hook type for P is J

func (*HandlerMap) RegisterHandler

func (h *HandlerMap) RegisterHandler(hdlr hook.IHook, restMethods string, args ...interface{})

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

type HandlerTypeAndArgs added in v0.9.5

type HandlerTypeAndArgs struct {
	HandlerType reflect.Type
	Args        []interface{}
}

Jump to

Keyboard shortcuts

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