routing

package
v2.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2019 License: GPL-3.0 Imports: 30 Imported by: 0

Documentation

Overview

This file is part of SystemTestPortal. Copyright (C) 2017 Institute of Software Technology, University of Stuttgart

SystemTestPortal is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

SystemTestPortal is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with SystemTestPortal. If not, see <http://www.gnu.org/licenses/>.

Package routing contains the routing for the application. This includes the routers and the urls belonging to each handler.

Index

Constants

View Source
const (
	Register       = "/register"
	SignIn         = "/signin"
	SignOut        = "/signout"
	SystemSettings = "/settings"

	About   = "/about"
	Imprint = "/imprint"
	Privacy = "/privacy"
	License = "/license"

	Explore = "/explore"

	Dashboard = "/dashboard"
	Tasks     = "/tasks"

	Activity = "/activity"

	Permission = "/permission"

	Projects        = "/projects"
	Users           = "/users"
	Groups          = "/groups"
	GlobalDashboard = "/globaldashboard"

	Cases     = "/testcases"
	Sequences = "/testsequences"
	Protocols = "/protocols"
	Members   = "/members"
	Comment   = "/comment"
)

The different static parts a url can be made of

View Source
const (
	Async             = "/async"
	Show              = "/"
	New               = "/new"
	Edit              = "/edit"
	Update            = "/update"
	Duplicate         = "/duplicate"
	Delete            = "/delete"
	History           = "/history"
	Execute           = "/execute"
	Upload            = "/upload"
	Save              = "/save"
	Print             = "/print"
	PrintPdf          = "/pdf"
	PrintMd           = "/md"
	JSON              = "/json"
	Info              = "/info"
	Versions          = "/versions"
	Settings          = "/settings"
	ChangePassword    = "/changePassword"
	DeactivateUser    = "/deactivateUser"
	Labels            = "/labels"
	Roles             = "/roles"
	Add               = "/add"
	Remove            = "/remove"
	Tester            = "/tester"
	SequenceDashboard = "/sequences"
	Export            = "/export"
	Markdown          = "/markdown"
	Sanitize          = "/sanitize"
	Closed            = "/closed"
	Opened            = "/opened"
)

The actions that can be taken on an item

View Source
const (
	VarContainer = "/:container"
	VarProject   = "/:project"
	VarSequence  = "/:testsequence"
	VarCase      = "/:testcase"
	VarProfile   = "/:profile"
)

The variables a url part can be

View Source
const (
	SettingsNav = "/nav"
	SettingsTab = "/tab"

	SettingsProject      = "/settings/project"
	SettingsPermission   = "/settings/permission"
	SettingsIntegrations = "/settings/integrations"
)

Variables

This section is empty.

Functions

func InitRouter

func InitRouter() http.Handler

InitRouter initializes the main router that handles all incoming requests

Types

This section is empty.

Jump to

Keyboard shortcuts

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