-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
460 additions
and
535 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
export { Queue } from 'jsr:@cm-iv/queue@1.0.0'; | ||
export { delay } from 'jsr:@std/async@1.0.6/delay'; | ||
export { deepMerge as merge } from 'jsr:@cross/deepmerge@1.0.0'; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
export interface LedgerOptions { | ||
/** Transport List */ | ||
workers: WorkerOptions[]; | ||
|
||
/** Control the respawn limitations. */ | ||
respawn?: { | ||
/** The maximum number of restarts for an individual worker. */ | ||
limit: number; | ||
/** The rolling window in ms to decrement the respawn counter. */ | ||
per: number; | ||
}; | ||
} | ||
|
||
export interface WorkerOptions { | ||
/** Set the Worker Loading Mode. */ | ||
mode: 'jsr.io' | 'alternative'; | ||
/** Associated {@link TransportOptions}. */ | ||
options: TransportOptions; | ||
/** | ||
* The package to initialize. Approved JSR Types listed, but any string is allowed. | ||
* | ||
* Mode must be 'disk' to allow alternative packages. | ||
*/ | ||
// deno-lint-ignore ban-types | ||
package: ApprovedWorkers | string & {}; | ||
} | ||
|
||
export interface TransportOptions { | ||
/** Control the processing thread. */ | ||
queue?: { | ||
/** The number of events to process concurrently. */ | ||
threadCount: number; | ||
}; | ||
} | ||
|
||
/** List of Approved Workers. Official or Approved Workers List for Auto Indexing. */ | ||
export type ApprovedWorkers = | ||
| '@ledger/console-transport' | ||
| '@ledger/file-transport'; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.