Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Define authorization middleware names SUPER = "SuperAuthorization" PARTICIPANT = "ParticipantAuthorization" // `ROUTELEVEL` indicates the depth of routePath where a specific keyword is located. ROUTELEVEL = 2 )
Variables ¶
This section is empty.
Functions ¶
func AuthWalker ¶
This function is used by mux.Router to walk through routes that are registered with mux.Router. AuthWalker retrieves routes and validates that auth middleware is properly implemented with the routes for different accessibility levels.
func InitAuthTesting ¶
func InitAuthTesting()
This function does all the things and sets `isInit` to true before the testing is run.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.