Runner class

A command-line utility for easier running of multiple instances of an Angel application.

Makes it easy to do things like configure SSL, log messages, and send messages between all running instances.

Constructors

Runner(String name, AngelConfigurer configureServer, {Reflector reflector = const EmptyReflector(), Map<String, Object> removeResponseHeaders = const {}, Map<String, Object> responseHeaders = const {}})

Properties

configureServer → AngelConfigurer
final
hashCode int
The hash code for this object.
no setterinherited
name String
final
reflector → Reflector
final
removeResponseHeaders Map<String, Object>
final
responseHeaders Map<String, Object>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
run(List<String> args) Future
Starts a number of isolates, running identical instances of an Angel application.
spawnIsolate(int id, RunnerOptions options, SendPort pubSubSendPort) Future
Spawns a new instance of the application in a separate isolate.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

chooseLogColor(Level level) → AnsiCode
Chooses a color based on the logger level.
handleLogRecord(LogRecord? record, RunnerOptions options) → void
LogRecord handler
isolateMain(RunnerArgsWithId argsWithId) → void
Run with main isolate