Documentation
¶
Overview ¶
Package anubis contains the version number of Anubis.
Index ¶
Constants ¶
const APIPrefix = "/.within.website/x/cmd/anubis/api/"
APIPrefix is the location where all Anubis API endpoints are located.
const CookieDefaultExpirationTime = 7 * 24 * time.Hour
CookieDefaultExpirationTime is the amount of time before the cookie/JWT expires.
const DefaultDifficulty = 4
DefaultDifficulty is the default "difficulty" (number of leading zeroes) that must be met by the client in order to pass the challenge.
const StaticPath = "/.within.website/x/cmd/anubis/"
StaticPath is the location where all static Anubis assets are located.
Variables ¶
var BasePrefix = ""
BasePrefix is a global prefix for all Anubis endpoints. Can be emptied to remove the prefix entirely.
var CookieName = "techaro.lol-anubis-auth"
CookieName is the name of the cookie that Anubis uses in order to validate access.
var ForcedLanguage = ""
ForcedLanguage is the language being used instead of the one of the request's Accept-Language header if being set.
var TestCookieName = "techaro.lol-anubis-cookie-verification"
TestCookieName is the name of the cookie that Anubis uses in order to check if cookies are enabled on the client's browser.
var Version = "devel"
Version is the current version of Anubis.
This variable is set at build time using the -X linker flag. If not set, it defaults to "devel".
Functions ¶
This section is empty.
Types ¶
This section is empty.
Directories
¶
Path | Synopsis |
---|---|
cmd
|
|
robots2policy/batch
Batch process robots.txt files from archives like https://github.com/nrjones8/robots-dot-txt-archive-bot/tree/master/data/cleaned into Anubis CEL policies.
|
Batch process robots.txt files from archives like https://github.com/nrjones8/robots-dot-txt-archive-bot/tree/master/data/cleaned into Anubis CEL policies. |
challenge/metarefresh
templ: version: v0.3.906
|
templ: version: v0.3.906 |
policy/checker
Package checker defines the Checker interface and a helper utility to avoid import cycles.
|
Package checker defines the Checker interface and a helper utility to avoid import cycles. |
store/all
Package all is a meta-package that imports all store implementations.
|
Package all is a meta-package that imports all store implementations. |
templ: version: v0.3.906
|
templ: version: v0.3.906 |
Package xess vendors a copy of Xess and makes it available at /.xess/xess.css
|
Package xess vendors a copy of Xess and makes it available at /.xess/xess.css |