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, String schemaJson = '{}', DateTime now() = _systemUtcNow})
-
Creates the dependency bundle.
const
Properties
- 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
- retention → RetentionService
-
The retention sweeper.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- schemaJson → String
-
The
VideoSpecJSON 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