Documentation
¶
Overview ¶
Package github mocks the GitHub REST API and the device-flow endpoints of github.com on one server: DEVCTL_GITHUB_API_URL and DEVCTL_GITHUB_OAUTH_URL both point at it. Every response comes from the scenario's route sequences; the mock adds what the real API adds and a client relies on: the rate-limit headers the poll interval is read from, an ETag on every successful body, and 304 Not Modified when a conditional request carries that ETag.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NotFound = sequence.Response{ Status: http.StatusNotFound, Body: map[string]any{ "message": "Not Found", "documentation_url": "https://docs.github.com/rest", "status": "404", }, }
NotFound is what an unscripted route answers, the way api.github.com does.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.