MAGE API Documentation
Here you will find both the API documentation for MAGE.
New to MAGE? Looking for a list of features or configuration options?
You should have a look at the user documentation first.
Frequently Used APIs
Name |
Description |
MAGE |
MAGE general APIs (start, stop, initialization and configuration) |
State |
Transactional state object (mostly provided by user commands) |
Archivist |
Database access layer |
Logger |
Logging and log levels |
Configuration |
Configuration access |
Core |
MAGE Core APIs (HTTP Server, MsgServer, etc.) |
See also
Type aliases
AuthenticateCallback
AuthenticateCallback: function
Type declaration
-
- (error: Error | null, userId: string | number, acl: string[]): void
-
Parameters
-
error: Error | null
-
userId: string | number
-
acl: string[]
Returns void
BanCallback
BanCallback: function
Type declaration
-
- (error: Error | null): void
ChangePasswordCallback
ChangePasswordCallback: function
Type declaration
-
- (error: Error | null): void
ConfigurationLabel
ConfigurationLabel: string | string[]
LoginCallback
LoginCallback: function
Type declaration
-
- (error: Error | null, session: Session): void
MmrpEnvelopeFlag
MmrpEnvelopeFlag: "NONE" | "TRACK_ROUTE" | number
MmrpEnvelopeMessage
MmrpEnvelopeMessage: string | Buffer
MmrpEnvelopeRoute
MmrpEnvelopeRoute: string[]
RegisterCallback
RegisterCallback: function
Type declaration
-
- (error: Error | null, userId: string): void
-
Parameters
-
error: Error | null
-
userId: string
Returns void
ServiceErrorEventHandler
ServiceErrorEventHandler: function
ServiceEventHandler
ServiceEventHandler: function
ServiceEventName
ServiceEventName: "up" | "down" | "error"
TimeConfig
TimeConfig: object
Type declaration
-
accelerationFactor: number
-
offset: number
-
startAt: number
UnbanCallback
UnbanCallback: function
Type declaration
-
- (error: Error | null): void
VaultOperation
VaultOperation: "add" | "set" | "del" | "touch"
Auth callbacks