json

package
v2.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2019 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 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

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.

Jump to

Keyboard shortcuts

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