Documentation ¶
Index ¶
Constants ¶
View Source
const ( // App is the path for the web app. App = "/app" // AppHome is the path for the home page. AppHome = App + AppSubHome // AppSubHome is the sub path for the home page. AppSubHome = "/" // AppLogin is the path for the login page. AppLogin = App + AppSubLogin // AppSubLogin is the sub path for the login page. AppSubLogin = "/login" // AppLogout is the path for the logout page. AppLogout = App + AppSubLogout // AppSubLogout is the sub path for the logout page. AppSubLogout = "/logout" // AppSettings is the path for the settings page. AppSettings = App + AppSubSettings // AppSubSettings is the sub path for the settings page. AppSubSettings = "/settings" // AppPartCallbackOauth is the part for an oauth callback. AppPartCallbackOauth = "/callback/oauth/" // AppSubCallbackOauth is the sub path for an oauth callback. AppSubCallbackOauth = AppPartCallbackOauth + VarInstance // AppPreCallbackOauth is the prefix path for an oauth callback. AppPreCallbackOauth = App + AppPartCallbackOauth // AppAdmin is the path for the admin page. AppAdmin = App + AppSubAdmin // AppSubAdmin is the sub path for the admin page. AppSubAdmin = "/admin" // AppAdminAccount is the path for the admin account page. AppAdminAccount = AppAdmin + AppAdminSubAccount // AppAdminSubAccount is the sub path for the admin account page. AppAdminSubAccount = "/accounts" // AppAdminHome is the path for the home page. AppAdminHome = AppAdmin + AppAdminSubHome // AppAdminSubHome is the sub path for the home page. AppAdminSubHome = "/dashboard" // AppAdminInstance is the path for the admin instances page. AppAdminInstance = AppAdmin + AppAdminSubInstance // AppAdminSubInstance is the sub path for the admin instances page. AppAdminSubInstance = "/instances" // AppAdminPreInstanceView is the prefix path for the admin instance view page. AppAdminPreInstanceView = AppAdmin + AppAdminSubInstance + "/" // AppAdminTags is the path for the admin tags page. AppAdminTags = AppAdmin + AppAdminSubTags // AppAdminSubTags is the sub path for the admin tags page. AppAdminSubTags = "/tags" )
View Source
const ( // 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 ( ReAppAdminPre = regexp.MustCompile(fmt.Sprintf(`^?%s`, AppAdmin)) ReAppAdminAccountPre = regexp.MustCompile(fmt.Sprintf(`^?%s`, AppAdminAccount)) ReAppAdminHome = regexp.MustCompile(fmt.Sprintf(`^?%s$`, AppAdminHome)) ReAppAdminInstancesPre = regexp.MustCompile(fmt.Sprintf(`^?%s`, AppAdminInstance)) ReAppAdminTagsPre = regexp.MustCompile(fmt.Sprintf(`^?%s`, AppAdminTags)) ReAppHome = regexp.MustCompile(fmt.Sprintf(`^?%s$`, AppHome)) ReAppSettings = regexp.MustCompile(fmt.Sprintf(`^?%s$`, AppSettings)) )
Functions ¶
func GenCallbackOauth ¶
GenCallbackOauth returns a url for a callback oauth.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.