- groups:add / ranges:plan / nodes:create / coordinator:run commands - the node API: lease, the range's chunks as one framed stream from the spool, batches, heartbeat, finish, release (node guard, token per node) - edge:node: needs COORDINATOR_URL and NODE_TOKEN only (placeholders for the rest), posts a batch every 10 chunks, gives its range back on SIGTERM - releases are gathered per batch: 1.04 chunk rows per release at 10 chunks per batch (1.35 when built per XOVER chunk) - partitions are checked per batch instead of remembered Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
39 lines
1.8 KiB
TypeScript
39 lines
1.8 KiB
TypeScript
import '@adonisjs/core/types/http'
|
|
|
|
type ParamValue = string | number | bigint | boolean
|
|
|
|
export type ScannedRoutes = {
|
|
ALL: {
|
|
'auth.new_account.store': { paramsTuple?: []; params?: {} }
|
|
'auth.access_tokens.store': { paramsTuple?: []; params?: {} }
|
|
'profile.profile.show': { paramsTuple?: []; params?: {} }
|
|
'profile.access_tokens.destroy': { paramsTuple?: []; params?: {} }
|
|
'node.node.lease': { paramsTuple?: []; params?: {} }
|
|
'node.node.stream': { paramsTuple: [ParamValue]; params: {'id': ParamValue} }
|
|
'node.node.batch': { paramsTuple: [ParamValue]; params: {'id': ParamValue} }
|
|
'node.node.heartbeat': { paramsTuple: [ParamValue]; params: {'id': ParamValue} }
|
|
'node.node.finish': { paramsTuple: [ParamValue]; params: {'id': ParamValue} }
|
|
'node.node.release': { paramsTuple: [ParamValue]; params: {'id': ParamValue} }
|
|
}
|
|
GET: {
|
|
'profile.profile.show': { paramsTuple?: []; params?: {} }
|
|
'node.node.stream': { paramsTuple: [ParamValue]; params: {'id': ParamValue} }
|
|
}
|
|
HEAD: {
|
|
'profile.profile.show': { paramsTuple?: []; params?: {} }
|
|
'node.node.stream': { paramsTuple: [ParamValue]; params: {'id': ParamValue} }
|
|
}
|
|
POST: {
|
|
'auth.new_account.store': { paramsTuple?: []; params?: {} }
|
|
'auth.access_tokens.store': { paramsTuple?: []; params?: {} }
|
|
'profile.access_tokens.destroy': { paramsTuple?: []; params?: {} }
|
|
'node.node.lease': { paramsTuple?: []; params?: {} }
|
|
'node.node.batch': { paramsTuple: [ParamValue]; params: {'id': ParamValue} }
|
|
'node.node.heartbeat': { paramsTuple: [ParamValue]; params: {'id': ParamValue} }
|
|
'node.node.finish': { paramsTuple: [ParamValue]; params: {'id': ParamValue} }
|
|
'node.node.release': { paramsTuple: [ParamValue]; params: {'id': ParamValue} }
|
|
}
|
|
}
|
|
declare module '@adonisjs/core/types/http' {
|
|
export interface RoutesList extends ScannedRoutes {}
|
|
} |