Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AdminRouter ¶
Make a subrouter for admin-only requests. This checks for a token passed in via basic auth. If the username is not admin or the token does not match the argument, none of the routes registered on the returned router will match, instead returning 404 (Not found). TODO: think about whether we want that as an explicit security feature. It masks the presence or absence of nodes, which is nice (but if we're to rely on that, we need to mitigate timing attacks).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.