class ControllerInstance
Constructors
🔗
ControllerInstance()
The constructor function initializes a new instance of the ControllerInstance class with a unique ID, a logger, a broadcast channel, and a module manager.
Methods
🔗
startup(): Promise<void>
The startup
function initializes and starts the modules registered with the controller instance,
logging any errors that occur.
🔗
stop(memorydb: Deno.Kv): void
The stop
function stops the controller instance by closing the connection to the memory database,
unregistering signal handlers, releasing system resources, and exiting the Deno runtime with a
graceful shutdown exit code.
Static Methods
🔗
init(): Promise<ControllerInstance>
The function initializes a ControllerInstance by connecting to a memory database and returning a new instance.