# Functions
GetServer return the http server instance.
LoadDataRecords loads all the data records in the 'data' directory into the database.
LoadDemoRecords loads all the data records in the 'demo' directory into the database.
LoadInternalResources loads all data in the 'resources' directory, that are - views, - actions, - menu items Internal resources are defined in XML files.
LoadModuleTranslations loads the PO files in the given directory for the given languages.
LoadTranslations loads all translation data from the PO files in the 'i18n' directory into the translations registry.
PostInit runs all actions that need to be done after all modules have been loaded.
PostInitModules calls successively all PostInit functions of all installed modules.
PreInit runs all actions that need to be done after we get the configuration, but before bootstrap.
PreInitModules calls successively all PreInit functions of all installed modules.
RegisterModule registers the given module in the server This function should be called in the init() function of all Hexya Addons.
# Variables
Modules is the list of activated modules in the application.
ResourceDir is the path to the resources directory.
# Structs
The Context allows to pass data across controller layers and middlewares.
JSONRPCError is the format of an Error in a ResponseError.
JSONRPCErrorData is the format of the Data field of an Error Response.
A Module is a go package that implements business features.
A RequestRPC is the message format expected from a client.
A ResponseError is the message format sent back to a client in case of failure.
A ResponseRPC is the message format sent back to a client in case of success.
RouterGroup is used internally to configure router, a RouterGroup is associated with a prefix and an array of handlers (middleware).
A Server is the http server of the application It is internally a wrapper around a gin.Engine.
# Type aliases
A HandlerFunc is a function that can be used for handling a given request or as a middleware.
A ModulesList is a list of Module objects.