Exemplo n.º 1
0
func NewDynamicHandler(ctrlgroup *controller.ControllerGroup) *DynamicHandler {
	if ctrlgroup == nil {
		ctrlgroup = controller.GetDefaultControllerGroup()
	}

	return &DynamicHandler{
		ctrlgroup: ctrlgroup,
	}
}
Exemplo n.º 2
0
func NewDefaultDynamicHandler(ctrlgroup *controller.ControllerGroup, action, control, mod string) *DynamicHandler {
	if ctrlgroup == nil {
		ctrlgroup = controller.GetDefaultControllerGroup()
	}

	return &DynamicHandler{
		module:     mod,
		controller: control,
		action:     action,
		ctrlgroup:  ctrlgroup,
	}
}