github library

Storage in a GitHub repository: TomGitHubStorage — one save is one commit, guarded by compare-and-swap on the branch head — and the waits it takes from GitHub's rate limits (tomGitHubWaitOf). Its locator, TomGitHubLocator (github:<owner>/<repo>[@<branch>]/<path>), is pure parsing and is in the default entry point. Reaches the network through tom_github_api, so it is an entry point of its own: the default entry point stays network-free.

Classes

GitHubGitIdentity
The author or committer of a git commit: a name and an address, and the time (null: the time GitHub records the commit).
TomGitHubStorage
Containers committed straight into a GitHub repository.

Functions

tomGitHubWaitOf(Object error, {required TomBackoffPolicy backoff, required DateTime now, required double jitterSample}) → TomGitHubWait?
The wait error calls for, or null when it is not a rate limit.

Typedefs

TomGitHubWait = ({TomRateLimitKind kind, DateTime until})
A rate-limit refusal read as a wait: which limit, and until when.