list

package
v2.0.0-rc10+incompatible Latest Latest
Warning

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

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

Documentation

Overview

Package list contains the logic for listing elements and everything that comes with listing, like filtering, sorting, etc.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CasesGet

func CasesGet(lister handler.TestCaseLister) http.HandlerFunc

CasesGet simply serves a page that is used to list testcases,

func GlobalDashboardGet

func GlobalDashboardGet(projectLister handler.ProjectLister, testCaseLister handler.TestCaseLister, caseProtocolLister handler.CaseProtocolLister) http.HandlerFunc

ProjectsGet serves the page that is used to explore projects.

func GroupsGet

func GroupsGet(g handler.GroupLister) http.HandlerFunc

GroupsGet serves the page that is used to explore groups.

func IsJSON

func IsJSON(str string) bool

IsJSON checks whether a given string is in JSON format

func MembersGet

func MembersGet(lister handler.ProjectLister, us middleware.UserRetriever, userLister handler.UserLister, taskListGetter handler.TaskListGetter) http.HandlerFunc

MembersGet simply serves a page that is used to list the members of a project,

func ProjectsGet

func ProjectsGet(p handler.ProjectLister) http.HandlerFunc

ProjectsGet serves the page that is used to explore projects.

func ProtocolsGet

ProtocolsGet serves the page that displays the list of protocols

func SequencesGet

func SequencesGet(lister handler.TestSequenceLister) http.HandlerFunc

SequencesGet simply serves the page that lists sequences.

func UsersGet

func UsersGet(u handler.UserLister) http.HandlerFunc

UsersGet shows the list of users

Types

type Selection

type Selection struct {
	SelectedCase,
	SelectedSequence,
	SelectedType string
}

Selection contains which test is selected

func GetSelection

func GetSelection(r *http.Request) Selection

GetSelection gets the selected test from the request and returns a selection item. If there is no selection in the parameter, the selection is set to "show all test cases"

Jump to

Keyboard shortcuts

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