Documentation ¶
Overview ¶
Package json contains functions to serve and receive data as json.
Index ¶
- func CaseGet(w http.ResponseWriter, r *http.Request)
- func CaseLabelsGet(w http.ResponseWriter, r *http.Request)
- func CaseLabelsPost(tcs handler.TestCaseAdder) func(http.ResponseWriter, *http.Request)
- func CaseProtocolsGet(l handler.CaseProtocolLister) http.HandlerFunc
- func CasesGet(tcl handler.TestCaseLister) http.HandlerFunc
- func CasesProtocolsGet(l handler.CaseProtocolLister) http.HandlerFunc
- func MarshallerError() errors.HandlerError
- func ProjectLabelsGet(w http.ResponseWriter, r *http.Request)
- func ProjectLabelsPost(ps handler.ProjectAdder) func(w http.ResponseWriter, r *http.Request)
- func ProjectRolesGet(w http.ResponseWriter, r *http.Request)
- func ProjectVariantsGet(w http.ResponseWriter, r *http.Request)
- func ProjectVariantsPost(ps handler.ProjectAdder) func(http.ResponseWriter, *http.Request)
- func SequenceGet(w http.ResponseWriter, r *http.Request)
- func SequenceInfoGet(tg handler.TestCaseGetter) http.HandlerFunc
- func SequenceLabelsGet(w http.ResponseWriter, r *http.Request)
- func SequenceLabelsPost(tss handler.TestSequenceAdder) func(http.ResponseWriter, *http.Request)
- func SequenceProtocolsGet(l handler.SequenceProtocolLister) http.HandlerFunc
- func SequencesGet(t handler.TestSequenceLister) http.HandlerFunc
- func SequencesProtocolsGet(l handler.SequenceProtocolLister) http.HandlerFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CaseGet ¶
func CaseGet(w http.ResponseWriter, r *http.Request)
CaseGet serves a requested testcase as json.
func CaseLabelsGet ¶
func CaseLabelsGet(w http.ResponseWriter, r *http.Request)
CaseLabelsGet returns the labels of a test case as JSON
func CaseLabelsPost ¶
func CaseLabelsPost(tcs handler.TestCaseAdder) func(http.ResponseWriter, *http.Request)
CaseLabelsPost handles the request to update the labels of a test case
func CaseProtocolsGet ¶
func CaseProtocolsGet(l handler.CaseProtocolLister) http.HandlerFunc
CaseProtocolsGet serves testcase protocols as json.
func CasesGet ¶
func CasesGet(tcl handler.TestCaseLister) http.HandlerFunc
CasesGet serves all cases for a requested project as json.
func CasesProtocolsGet ¶ added in v1.5.0
func CasesProtocolsGet(l handler.CaseProtocolLister) http.HandlerFunc
CasesProtocolsGet serves all testcase protocols of a project as json.
func MarshallerError ¶
func MarshallerError() errors.HandlerError
MarshallerError returns an ErrorMessage describing that an Error occurred while encoding the test cases
func ProjectLabelsGet ¶
func ProjectLabelsGet(w http.ResponseWriter, r *http.Request)
ProjectLabelsGet returns the labels of a project as JSON
func ProjectLabelsPost ¶
func ProjectLabelsPost(ps handler.ProjectAdder) func(w http.ResponseWriter, r *http.Request)
ProjectLabelsPost handles the request to update the labels of a project
func ProjectRolesGet ¶ added in v1.1.0
func ProjectRolesGet(w http.ResponseWriter, r *http.Request)
ProjectRolesGet returns the roles of a project as json
func ProjectVariantsGet ¶
func ProjectVariantsGet(w http.ResponseWriter, r *http.Request)
ProjectVariantsGet simply serves the variants of a project as json.
func ProjectVariantsPost ¶
func ProjectVariantsPost(ps handler.ProjectAdder) func(http.ResponseWriter, *http.Request)
ProjectVariantsPost handles request that demand changes to the existing set of variants.
func SequenceGet ¶
func SequenceGet(w http.ResponseWriter, r *http.Request)
SequenceGet serves a single sequence as json.
func SequenceInfoGet ¶
func SequenceInfoGet(tg handler.TestCaseGetter) http.HandlerFunc
SequenceInfoGet serves detailed information about a testsequence as json.
func SequenceLabelsGet ¶
func SequenceLabelsGet(w http.ResponseWriter, r *http.Request)
SequenceLabelsGet returns the labels of a test sequence as JSON
func SequenceLabelsPost ¶
func SequenceLabelsPost(tss handler.TestSequenceAdder) func(http.ResponseWriter, *http.Request)
SequenceLabelsPost handles the request to update the labels of a test sequence
func SequenceProtocolsGet ¶
func SequenceProtocolsGet(l handler.SequenceProtocolLister) http.HandlerFunc
SequenceProtocolsGet serves testsequence protocols as json.
func SequencesGet ¶
func SequencesGet(t handler.TestSequenceLister) http.HandlerFunc
SequencesGet simply serves all test sequences of a project as json.
func SequencesProtocolsGet ¶ added in v1.5.0
func SequencesProtocolsGet(l handler.SequenceProtocolLister) http.HandlerFunc
SequencesProtocolsGet serves all testsequence protocols of a project as json.
Types ¶
This section is empty.