ServerInit class

Implemented types

Constructors

ServerInit({String ikonBackendUrl = '', String ikonBackendToken = '', String spaceId = '', List<ServerPluginInit> plugins = const [], String primaryUserId = '', String appSessionId = '', String spaceUrl = '', List<ServerExtensionInit> extensions = const [], String organisationName = '', String spaceName = '', String sessionIdentityHash = '', Map<String, String> sessionIdentity = const {}, int frontendPort = 0, bool debugMode = false, List<ServerInitDatabaseConnectionInfo> databaseConnectionInfos = const [], String runTarget = '', String placedSurface = '', String connectTraceId = '', String connectTokenSecret = '', String stateDatabase = '', String aIRegionPolicy = '', String aIRouteConfigJson = '', bool credentialsHandedOver = false, Map<String, String> apiKeys = const {}, Map<String, String> secrets = const {}, int backgroundWorkLimitSeconds = 0, int maxSessionAgeSeconds = 0})
ServerInit.fromJson(Map<String, dynamic> json)
factory
ServerInit.fromReader(TeleportObjectReader reader)
factory
ServerInit.fromTeleport(Uint8List data)
factory

Properties

aIRegionPolicy ↔ String
The organisation's AI region policy in the backend's wording (unrestricted, eu-only), read for the server's space token. Empty when the backend did not send it, and the server then reads it itself.
getter/setter pair
aIRouteConfigJson ↔ String
The body of GET /internal/ai/routes for the server's space token. Empty when not sent.
getter/setter pair
apiKeys ↔ Map<String, String>
The space token's API keys, as /ikon-tool/keys returns them. Never logged.
getter/setter pair
appSessionId ↔ String
getter/setter pair
backgroundWorkLimitSeconds ↔ int
The background work the session may hold with nobody in it, in seconds, counted over its whole life: the space's own limit or the default. The backend stops the session once its total passes this. Zero when the backend sets no such limit: a cell host, or a backend that predates the field.
getter/setter pair
connectTokenSecret ↔ String
Key this server verifies ConnectTokens with, derived per-server by the backend rather than being the platform-wide signing secret. It arrives here because a prestarted container was created before it was claimed, so the value written into its config file at creation belongs to no tenant yet; provisioning is the point the server learns which key its tokens will carry.
getter/setter pair
connectTraceId ↔ String
Correlation id of the client connect that triggered this warm prestart-swap (from the backend's /init handling). The server folds its CORE_SERVER_INIT boot timing into a single connect-latency event keyed by this id, so the warm-boot cost stitches with the other per-connect tiers.
getter/setter pair
credentialsHandedOver ↔ bool
True when ApiKeys and Secrets hold what /ikon-tool/keys and /ikon-tool/secrets return for the server's space token, so the server need not fetch them. False when the backend did not send them.
getter/setter pair
databaseConnectionInfos ↔ List<ServerInitDatabaseConnectionInfo>
getter/setter pair
debugMode ↔ bool
getter/setter pair
extensions ↔ List<ServerExtensionInit>
getter/setter pair
frontendPort ↔ int
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
ikonBackendToken ↔ String
getter/setter pair
ikonBackendUrl ↔ String
getter/setter pair
maxSessionAgeSeconds ↔ int
How long the session may run, in seconds, before the backend stops it whatever it is doing. Zero when it has no maximum: a cell host, a space that turned the maximum off, or a backend that predates the field.
getter/setter pair
organisationName ↔ String
getter/setter pair
placedSurface ↔ String
The surface this server is placed for alone (Placement = "own" in ikon-config.toml); it refuses a connect whose token names another surface. Empty for a shared instance and for a cell-host.
getter/setter pair
plugins ↔ List<ServerPluginInit>
getter/setter pair
primaryUserId ↔ String
getter/setter pair
retiredFields ↔ ServerInitRetiredFields?
Retired ledger values captured on read: keys the schema no longer names, kept so code upgrading from an older peer can still reach them. Null when the source carried none.
getter/setter pair
runTarget ↔ String
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
secrets ↔ Map<String, String>
The space's secrets, as /ikon-tool/secrets returns them. Never logged.
getter/setter pair
sessionIdentity ↔ Map<String, String>
getter/setter pair
sessionIdentityHash ↔ String
Hash of the session identity values this server was provisioned for.
getter/setter pair
spaceId ↔ String
getter/setter pair
spaceName ↔ String
getter/setter pair
spaceUrl ↔ String
getter/setter pair
stateDatabase ↔ String
Name of the database backing persistent reactive state, as recorded against the space, or empty when state belongs in asset storage. It rides provisioning rather than being read from the bundle because a prestarted container is re-pointed at a space here: the bundle's own value describes whatever app was built, not which store this space had recorded.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toProtocolMessage(int senderId, {ProtocolMessageOverrides? overrides}) → ProtocolMessage
Frames the message under its type's opcode and payload version. The type's default flags (unreliable for an unreliable message) are added to overrides' own.
override
toString() → String
A string representation of this object.
inherited
toTeleport() → Uint8List
writeTo(TeleportObjectWriter scope) → void

Operators

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