Documentation
¶
Overview ¶
Package fakeapi is a token-authenticated HTTPS API for tests: a stand-in for a provider such as a CDN or analytics service.
Index ¶
Constants ¶
View Source
const ( Good = "fake-good-token" // Rotated is a second valid token for the same account, as after a // person rotates their token at the provider. Rotated = "fake-rotated-token" // OtherAccount is a valid token for a different account. OtherAccount = "fake-other-account-token" OtherID = "acct-2" NoScope = "fake-noscope-token" Limited = "fake-limited-token" Broken = "fake-broken-token" NotJSON = "fake-notjson-token" AccountID = "acct-1" Label = "Acme Production" )
Tokens with fixed behaviour. Any other token is rejected with 401.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.