DVSymbolIngest class

Constructors

DVSymbolIngest({required DVSymbolRepository repository, Future<String?> token()?, int maxFileBytes = defaultMaxFileBytes, int failuresPerHour = 20, DateTime clock()?, void log(String line)?})

Properties

failuresPerHour → int
final
hashCode → int
The hash code for this object.
no setterinherited
maxFileBytes → int
final
repository → DVSymbolRepository
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

accept({required String release, required String name, required List<int> body, required String? authorization, required String? sha256, String source = DVClientAddress.unknownSource}) → Future<DVSymbolIngestResult>
authorize({required String? authorization, String source = DVClientAddress.unknownSource}) → Future<DVSymbolIngestResult?>
Who is asking, before a body is read: null when authorization is the token, otherwise the refusal. The HTTP route calls this first, so an unauthenticated caller is turned away before a 200 MB body is read for them; accept calls it again, so no other caller can skip it.
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

Constants

checksumHeader → const String
The header carrying the SHA-256 the uploader computed.
defaultMaxFileBytes → const int
The largest file accepted unless the deployment says otherwise: a native-symbols zip can be a few hundred megabytes.
path → const String
Where the generated backend serves it, under the API base path: PUT /_dartvel/symbols/<release>/<file>.
tokenSecret → const String
The secret the uploader presents as Authorization: Bearer <token>.