Documentation ¶
Index ¶
Constants ¶
View Source
const ( NewName = "newName" Dashboard = "dashboard" NewAccount = "newAccount" )
The parameter keys of the header
View Source
const ( // User Identifier = "inputIdentifier" Password = "inputPassword" DisplayName = "inputDisplayName" UserName = "inputUserName" Email = "inputEmail" // Project ProjectName = "inputProjectName" ProjectDescription = "inputProjectDesc" ProjectImage = "inputProjectLogo" ProjectVisibility = "optionsProjectVisibility" Version = "version" Filter = "filter" Label = "inputTestSequenceLabels" // TestCases TestCaseName = "inputTestCaseName" TestVersion = "testVersion" // TestSequences TestSequenceName = "inputTestSequenceName" TestSequenceDescription = "inputTestSequenceDescription" TestSequencePreconditions = "inputTestSequencePreconditions" TestSequenceLabels = "inputTestSequenceLabels" TestSequenceTestCase = "inputTestSequenceTestCase" NewTestCases = "newTestcases" CommitMessage = "inputCommitMessage" IsMinor = "isMinor" // Members Members = "members" Roles = "roles" Member = "member" Role = "role" // Assignment NewTesters = "newtesters" // Protocols ProtocolType = "type" SelectedProtocol = "selected" PreconditionResults = "preconditions" ProtocolNr = "protocolNr" // Group GroupName = "inputGroupName" GroupDescription = "inputGroupDesc" GroupVisibility = "inputGroupVisibility" // Comment CommentText = "commentText" Fragment = "fragment" )
The parameter keys of a request
Variables ¶
This section is empty.
Functions ¶
func DumpRequest ¶
DumpRequest dumps given request into printable string.
func DumpResponse ¶ added in v1.0.0
DumpResponse is like DumpRequest but for responses.
func IsFragmentRequest ¶
IsFragmentRequest checks if the request contains a parameter "fragment". If the parameter is one of 1, t, T, TRUE, true or True the function returns true, else it returns false
func SetHeaderValue ¶ added in v1.0.0
func SetHeaderValue(w http.ResponseWriter, key, value string)
SetHeaderValue is a helper function for setting a value in the header. The value will be URL-Encoded.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.