json

package
v1.5.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2018 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Overview

Package json contains functions to serve and receive data as json.

Index

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

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.

Jump to

Keyboard shortcuts

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