package
1.0.7
Repository: https://github.com/erlangs/hexya-web.git
Documentation: pkg.go.dev

# Functions

ActionLoad returns the action with the given id.
ActionRun runs the given server action.
AssetsBackendCSS returns the compiled CSS for the backend assets.
AssetsCommonCSS returns the compiled CSS for the common assets It creates the temp file on the fly if it doesn't exist yet.
AssetsFrontendCSS returns the compiled CSS for the frontend assets.
CallButton executes the given method of the given model and returns the result only if it is an action.
CallKW executes the given method of the given model.
ChangePassword is called by the client to change the current user password.
CheckUser panics if the given uid is 0 (i.e.
CompanyLogo serves the logo of the company.
CSSList returns the list of CSS files.
Dashboard returns the dashboard image of the company or the default one.
Execute executes a method on an object.
GetSessionInfo returns the session information to the client.
GetSessionInfoStruct returns a struct with information about the given session.
Image serves the image stored in the database (base64 encoded) in the given model and given field.
JSList returns the list of JS files.
Load executes a GET request and returns the values.
LoadLocale returns the locale's JS file.
LoadMenus returns the menus of the application as JSON.
LoginGet is called when the client calls the login page.
LoginPost is called when the client sends credentials from the login page.
LoginRequired is a middleware that redirects to login page non logged in users.
Logout the current user and redirect to login page.
MenuImage serves the image for the given menu.
MenuLoadNeedaction serves the number of objects that need an action in the given menu IDs.
Modules returns the list of installed modules to the client.
QWeb returns a concatenation of all client qweb templates.
RegisterRoutes register all controllers for the web module.
SearchRead retrieves database records according to the filters defined in params.
SearchReadController returns Records from the database.
Translations returns data about the current language.
VersionInfo returns server version information to the client.
WebClient is the controller for the application main page.

# Variables

AssetsBackendHelper contains the list of scss files that need to override Bootstrap variables in backend.
AssetsBootstrap contains the list of scss files that import boostrap.
AssetsBootstrapVariables contains the list of scss files with bootstrap variables.
AssetsFrontendHelper contains the list of scss files that need to override Bootstrap variables in frontend.
AssetsPrimaryVariables contains the list of scss files defining primary variables.
AssetsSecondaryVariables contains the list of scss files defining secondary variables.
AssetsUtils contains the list of scss utilities that must be compiled first.
BackendScss is the list of Scss assets to import by the web client that are specific to the backend.
CommonScss is the list of Scss assets to import by the web client that are common to the frontend and the backend.
FrontendContext is the base context to update when rendering a frontend HTML template.
FrontendScss is the list of Less assets to import by the web client that are specific to the frontend.
MethodAdapters is a map giving the adapter to call for each method.
TypePostProcess maps interface types to a function to apply after unmarshalling.
TypeSubstitutions maps interface types to appropriate concrete types to unmarshal into.

# Structs

CallParams is the arguments' struct for the Execute function.
ChangePasswordData is the params format passed to ChangePassword controller.
A Menu is the representation of a single menu item.
SearchReadParams is the args struct for the searchRead function.
SessionInfo gathers all information about the current session.
UserCompanies for the se.