mirror of
https://github.com/whyour/qinglong.git
synced 2026-09-22 10:32:40 +08:00
feat(ql3): establish 3.0 incubation baseline
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
import type { LocalArtifactReadRange } from '../domain/artifactRead';
|
||||
|
||||
export interface AvailableLocalArtifactByteRange {
|
||||
status: 'available';
|
||||
content: Buffer;
|
||||
start: number;
|
||||
endExclusive: number;
|
||||
totalBytes: number;
|
||||
nextOffset?: number;
|
||||
}
|
||||
|
||||
export type LocalArtifactByteRangeReadResult =
|
||||
| AvailableLocalArtifactByteRange
|
||||
| { status: 'missing' };
|
||||
|
||||
export interface LocalArtifactByteRangeReader {
|
||||
read(
|
||||
logArtifactId: string,
|
||||
range: Readonly<LocalArtifactReadRange>,
|
||||
): Promise<LocalArtifactByteRangeReadResult>;
|
||||
}
|
||||
Reference in New Issue
Block a user