path

package
v0.0.0-...-0f594a8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 3, 2023 License: AGPL-3.0 Imports: 3 Imported by: 0

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

func GenCallbackOauth(domain, instanceToken string) *url.URL

GenCallbackOauth returns a url for a callback oauth.

func MakeAppAdminInstanceViewPath

func MakeAppAdminInstanceViewPath(t string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL