Documentation
¶
Index ¶
Constants ¶
View Source
const ( // FileDefaultCSS is the css document applies to all pages. FileDefaultCSS = StaticCSS + "/default.min.css" // FileErrorCSS is the css document applies to the error page. FileErrorCSS = StaticCSS + "/error.min.css" // FileLoginCSS is the css document applies to the login page. FileLoginCSS = StaticCSS + "/login.min.css" // PartAccounts is used in a path for accounts. PartAccounts = "accounts" // PartAdd is used in a path for adding data. PartAdd = "add" // PartAdmin is used in a path for administrative tasks. PartAdmin = "admin" // PartApplicationTokens is used in a path for application tokens. PartApplicationTokens = "app-tokens" // PartAuthorize is used in a path for authorization. PartAuthorize = "authorize" // PartCallback is used in a path for callback. PartCallback = "callback" // PartClients is used in a path for oauth clients. PartClients = "clients" // PartFediverse is used in a path for federated things. PartFediverse = "fedi" // PartInstances is used in a path for instances. PartInstances = "instances" // PartJWKS is used in a path for jwks key exchange. PartJWKS = "jwks" // PartLogin is used in a path for login. PartLogin = "login" // PartLogout is used in a path for logout. PartLogout = "logout" // PartMe is used in a path for the self. PartMe = "me" // PartOauth is used in a path for oauth. PartOauth = "oauth" // PartOpenidConfiguration is used in a path for open id configuration. PartOpenidConfiguration = "openid-configuration" // PartStatic is used in a path for static files. PartStatic = "static" // PartSystem is used in a path for system things. PartSystem = "system" // PartToken is used in a path for static files. PartToken = "token" // PartWellKnown is used in a path for well known paths. PartWellKnown = ".well-known" // Admin is the path for the admin page. Admin = "/" + PartAdmin // AdminFediverse is the path for the fediverse admin page. AdminFediverse = Admin + AdminSubFediverse // AdminFediverseAccounts is the path for the fediverse admin page. AdminFediverseAccounts = Admin + AdminSubFediverseAccounts // AdminFediverseInstances is the path for the fediverse instances page. AdminFediverseInstances = Admin + AdminSubFediverseInstances // AdminSubFediverse is the sub path for the fediverse admin page. AdminSubFediverse = "/" + PartFediverse // AdminSubFediverseAccounts is the sub path for the fediverse admin accounts page. AdminSubFediverseAccounts = AdminSubFediverse + "/" + PartAccounts // AdminSubFediverseInstances is the sub path for the fediverse admin instances page. AdminSubFediverseInstances = AdminSubFediverse + "/" + PartInstances // AdminOauth is the path for the oauth admin page. AdminOauth = Admin + AdminSubOauth // AdminOauthClients is the path for the oauth clients admin page. AdminOauthClients = Admin + AdminSubOauthClients // AdminOauthClientAdd is the path for the oauth clients add admin page. AdminOauthClientAdd = Admin + AdminSubOauthClientAdd // AdminSubOauth is the sub path for the oauth admin page. AdminSubOauth = "/" + PartOauth // AdminSubOauthClient is the sub path for the oauth clients view client admin page. AdminSubOauthClient = AdminSubOauthClients + "/" + VarClient // AdminSubOauthClients is the sub path for the oauth clients admin page. AdminSubOauthClients = AdminSubOauth + "/" + PartClients // AdminSubOauthClientAdd is the sub path for the oauth clients add admin page. AdminSubOauthClientAdd = AdminSubOauthClients + "/" + PartAdd // AdminSystem is the path for the system admin page. AdminSystem = Admin + AdminSubSystem // AdminSystemApplicationTokens is the path for the application tokens page. AdminSystemApplicationTokens = Admin + AdminSubSystemApplicationTokens // AdminSystemApplicationTokenAdd is the path for the add application tokens page. AdminSystemApplicationTokenAdd = Admin + AdminSubSystemApplicationTokenAdd // AdminSubSystem is the sub path for the system admin page. AdminSubSystem = "/" + PartSystem // AdminSubSystemApplicationTokens is the sub path for the application tokens page. AdminSubSystemApplicationTokens = AdminSubSystem + "/" + PartApplicationTokens // AdminSubSystemApplicationTokenAdd is the sub path for the add application tokens page. AdminSubSystemApplicationTokenAdd = AdminSubSystemApplicationTokens + "/" + PartAdd // WellKnown is the path for the well known pages. WellKnown = "/" + PartWellKnown // WellKnownOpenidConfiguration is the path for the well known openid configuration. WellKnownOpenidConfiguration = WellKnown + WellKnownSubOpenidConfiguration // WellKnownOpenidConfigurationJWKS is the path for well known jwks. WellKnownOpenidConfigurationJWKS = WellKnown + WellKnownSubOpenidConfigurationJWKS // WellKnownSubOpenidConfiguration is the sub path for the well known openid configuration. WellKnownSubOpenidConfiguration = "/" + PartOpenidConfiguration // WellKnownSubOpenidConfigurationJWKS is the sub path for well known jwks. WellKnownSubOpenidConfigurationJWKS = WellKnownSubOpenidConfiguration + "/" + PartJWKS // CallbackOauth is the path for an oauth callback. CallbackOauth = "/" + PartCallback + "/" + PartOauth + "/" + VarInstance // Login is the path for the login page. Login = "/" + PartLogin // Logout is the path for the logout page. Logout = "/" + PartLogout // Me is the path for getting the logged-in user. Me = "/" + PartMe // Oauth is the path prefix for oauth. Oauth = "/" + PartOauth // OauthAuthorize is the path prefix for the oauth authorization. OauthAuthorize = Oauth + "/" + PartAuthorize // OauthToken is the path prefix for the oauth token. OauthToken = Oauth + "/" + PartToken // Static is the path for static files. Static = "/" + PartStatic + "/" // StaticCSS is the path. StaticCSS = Static + "css" // VarClientID is the id of the client variable. VarClientID = "instance" // VarClient is the var path of the client variable. VarClient = "{" + VarClientID + ":" + reToken + "}" // VarInstanceID is the id of the instance variable. VarInstanceID = "instance" // VarInstance is the var path of the instance variable. VarInstance = "{" + VarInstanceID + ":" + reToken + "}" )
Variables ¶
View Source
var ( // ReAdmin matches the admin page. ReAdmin = regexp.MustCompile(fmt.Sprintf(`^?/%s$`, PartAdmin)) // ReAdminFediversePre matches the admin fediverse page prefix. ReAdminFediversePre = regexp.MustCompile(fmt.Sprintf(`^?/%s/%s`, PartAdmin, PartFediverse)) // ReAdminFediverseAccountsPre matches the admin fediverse page prefix. ReAdminFediverseAccountsPre = regexp.MustCompile(fmt.Sprintf(`^?/%s/%s/%s`, PartAdmin, PartFediverse, PartAccounts)) // ReAdminFediverseInstancesPre matches the admin fediverse page prefix. ReAdminFediverseInstancesPre = regexp.MustCompile(fmt.Sprintf(`^?/%s/%s/%s`, PartAdmin, PartFediverse, PartInstances)) // ReAdminOauthPre matches the admin oauth page prefix. ReAdminOauthPre = regexp.MustCompile(fmt.Sprintf(`^?/%s/%s`, PartAdmin, PartOauth)) // ReAdminOauthClientsPre matches the admin oauth clients page prefix. ReAdminOauthClientsPre = regexp.MustCompile(fmt.Sprintf(`^?/%s/%s/%s`, PartAdmin, PartOauth, PartClients)) // ReAdminSystemPre matches the admin system page prefix. ReAdminSystemPre = regexp.MustCompile(fmt.Sprintf(`^?/%s/%s`, PartAdmin, PartSystem)) // ReAdminSystemApplicationTokensPre matches the admin system application tokens page prefix. ReAdminSystemApplicationTokensPre = regexp.MustCompile(fmt.Sprintf(`^?/%s/%s/%s`, PartAdmin, PartSystem, PartApplicationTokens)) )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.