Documentation ¶
Overview ¶
Package json contains functions to serve and receive data as json.
Index ¶
- func CaseGet(w http.ResponseWriter, r *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(labelStore handler.Labels) http.HandlerFunc
- 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 SequenceProtocolsGet(l handler.SequenceProtocolLister) http.HandlerFunc
- func SequencesGet(t handler.TestSequenceLister) http.HandlerFunc
- func SequencesProtocolsGet(l handler.SequenceProtocolLister) http.HandlerFunc
- func TestLabelsGet(labelStore handler.Labels) 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 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(labelStore handler.Labels) http.HandlerFunc
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 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.
func TestLabelsGet ¶
func TestLabelsGet(labelStore handler.Labels) http.HandlerFunc
Types ¶
This section is empty.