package
0.0.0-20250206095323-67f4e8942fa5
Repository: https://github.com/noxyicm/wsf.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# Functions

ActionInvoker is.
Dispatcher returns controller dispatcher.
ErrorHandling returns if controller should handle errors.
FromConfig creates a new route from config.
GetHelperBroker returns controller helper broker.
HasHelper returns true if controller has a helper.
HasPlugin returns true if controller has a plugin.
Helper returns a helper by its name.
Instance returns a main controller instance.
NewActionControllerBase creates an instance of action controller.
NewContextSwitchHelper creates a new context switch helper.
NewController creates a new controller specified by type.
NewDefaultController creates new default controller.
NewDefaultDispatcher creates new default dispatcher.
NewDefaultRouter creates new default router.
NewDispatcher creates a new dispatcher specified by type.
NewErrorHandlerPlugin creates a new error handling plugin.
No description provided by the author
NewFlashMessengerHelper creates new FlashMessenger action helper.
NewHelper creates a new action helper specified by type.
NewHelperAbstract creates new instance of AbstractHelper.
NewHelperBroker creates new HelperBroker.
NewHelpersStack creates new HelpersStack.
NewJSONHelper creates new JSON action helper.
NewPluginAbstract creates a plugin abstract instance.
NewPluginBroker creates a new plugins broker.
NewRedirectorHelper creates new Redirector action helper.
NewRoute creates a new router specified by type.
NewRouter creates a new router specified by type.
NewRouteRoute creates a new route structure.
NewRoutesList creates a new referenced stack.
NewURLHelper creates new URL action helper.
NewViewLayoutHelper creates new ViewLayout action helper.
NewViewRendererHelper creates new ViewRenderer action helper.
Plugin returns a plugin by its name.
Register registers a handler for controller creation.
RegisterDispatcher registers a handler for dispatcher creation.
RegisterHelper registers a handler for action helper creation.
RegisterPlugin registers a plugin to controller.
RegisterRoute registers a route type for router creation.
RegisterRouter registers a handler for router creation.
ReverseRoutes reorders routes map.
ReverseRoutesList reverce order of RouteList.
Router returns controller router.
SetDispatcher sets controller dispatcher.
SetErrorHandling sets if a controller should handle errors.
SetInstance sets a main controller instance.
SetRouter sets controller router.
SetThrowExceptions sets if controller should break on error.
ThrowExceptions returns true if controller should break on exception.

# Constants

Public contants.
Public contants.
JSONResponseKey is a string key in context data structure that contains data to encode.
TYPEDfault is a type of controller.
TYPEDispatcherDefault represents default dispatcher.
TYPEHelperContextSwitch represents ContextSwitch action helper.
TYPEHelperFlashMessenger represents FlashMessenger action helper.
TYPEHelperJSON represents JSON action helper.
TYPEHelperRedirector represents Redirector action helper.
TYPEHelperURL represents URL action helper.
TYPEHelperViewLayout is a plugin id.
TYPEHelperViewRenderer represents ViewRenderer action helper.
TYPERouterDefault represents default router.
TYPERouteRoute represents default route.

# Variables

Public variables.
Public variables.
Public variables.
Public variables.
Public variables.

# Structs

AbstractHelper is a base for action helpers.
ActionControllerBase is a controller.
Config represents controller configuration.
ContextSwitch is a context switch helper.
Controller base struct.
Default is a default controller for dc.
DefaultDispatcher dispatcher.
DefaultRouter is a default router.
DispatcherConfig represents dispatcher configuration.
ErrorHandler is a plugin for handling errors.
No description provided by the author
FlashMessenger is a action helper that handles persistent messeges.
HelperBroker stores and dispatches action helpers.
HelpersStack holds helpers stack sorted by priority.
JSON is a action helper that handles sending json response.
JSONResponse represents json response.
PluginAbstract is a extendable plugin base.
PluginBroker handles dispatching of events to plugins.
Redirector is a action helper that handles redirects.
Route is.
RouteConfig represents router configuration.
RouterConfig represents router configuration.
RoutesList is referenced stack of routes.
SwitchableContext represetns a context that context switch can use.
URL is a action helper that handles urls.
Plugin is a controller plugin layout.
ViewRenderer is a action helper that handles render.

# Interfaces

ActionControllerInterface interface.
DispatcherInterface is a dispatcher interface.
HelperInterface represents action helper interface.
Interface is an interface for controllers.
PluginInterface represents controller plugin.
RouteInterface is a route interface.
RouterInterface is an interface for controllers.
WithExceptionInterface is a wrapper for main controller.