ServerDependencies class final

The collaborators the HTTP layer needs, bundled so the router and app builder take one argument.

Annotations
  • @immutable

Constructors

ServerDependencies({required ServerConfig config, required RenderQueue queue, required JobStore jobStore, required FileStore fileStore, required RetentionService retention, required DownloadTokenSigner signer, required CodeValidationService codeValidator, RateLimiter rateLimiter = RateLimiter.disabled, String schemaJson = '{}', DateTime now() = _systemUtcNow})
Creates the dependency bundle.
const

Properties

codeValidator → CodeValidationService
Validates submitted Playground code (analysis only; never executes it).
final
config ServerConfig
The resolved server configuration.
final
fileStore → FileStore
Where rendered files live.
final
hashCode int
The hash code for this object.
no setterinherited
jobStore → JobStore
Where job records live.
final
now DateTime Function()
Supplies the current UTC time for download-token verification.
final
queue → RenderQueue
The render queue.
final
rateLimiter → RateLimiter
Guards the LLM-cost render path (prompt/edit) against per-IP abuse.
final
retention RetentionService
The retention sweeper.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
schemaJson String
The VideoSpec JSON schema served at /v1/schema/video-spec.
final
signer → DownloadTokenSigner
Signs and verifies private download tokens.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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