Documentation ¶
Overview ¶
Package list contains the logic for listing elements and everything that comes with listing, like filtering, sorting, etc.
Index ¶
- func CasesGet(lister handler.TestCaseLister) http.HandlerFunc
- func GlobalDashboardGet(projectLister handler.ProjectLister, testCaseLister handler.TestCaseLister, ...) http.HandlerFunc
- func GroupsGet(g handler.GroupLister) http.HandlerFunc
- func IsJSON(str string) bool
- func MembersGet(lister handler.ProjectLister, us middleware.UserRetriever, ...) http.HandlerFunc
- func ProjectsGet(p handler.ProjectLister) http.HandlerFunc
- func ProtocolsGet(tcl handler.TestCaseLister, tsl handler.TestSequenceLister) http.HandlerFunc
- func SequencesGet(lister handler.TestSequenceLister) http.HandlerFunc
- func UsersGet(u handler.UserLister) http.HandlerFunc
- type Selection
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 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 ¶
func ProtocolsGet(tcl handler.TestCaseLister, tsl handler.TestSequenceLister) http.HandlerFunc
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 ¶
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"