Documentation ¶
Index ¶
Constants ¶
View Source
const ADMIN = "Admin" // Deprecated, Do not use!
View Source
const AUTH = "Auth"
View Source
const Internal = "Internal"
View Source
const PRE_TWO_FACTOR = "PreTwoFactor"
View Source
const PUBLIC = "Public"
View Source
const ROOT = "Root"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InternalRoutes ¶
type InternalRoutes struct { // Internal is the base route for internal microservice communication InternalRoot *gin.RouterGroup }
Routes are the most basic organizational option available. They define urls as well as what level authentication is required.
type Routes ¶
type Routes struct { // Root provides access to / and allows for just about anything. No authentication is applied. Root *gin.RouterGroup // Public provides access to the /api route. No authentication is applied. Public *gin.RouterGroup // PreTwoFactor provides access to the /api route. It requires user authenticate through stage 1 (ie. Username/Password), but doesn't require stage 2 authentication. (TwoFactor Must Be Active) PreTwofactor *gin.RouterGroup // Auth requires that the user is fully authenticated. This could be just stage 1 or both stage 1 and 2 depending on if two factor is disabled or enabled respectively. Auth *gin.RouterGroup // NoRoute is not currently available to plugins. NoRoute func(...gin.HandlerFunc) }
Routes are the most basic organizational option available. They define urls as well as what level authentication is required.
Click to show internal directories.
Click to hide internal directories.