responses

package
v0.0.0-...-7630055 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2016 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseResponse

type BaseResponse struct {
	AgentUuid string `json:"agentuuid"`
	Type      string `json:"type"`
}

BaseResponse is a struct that is intended to be embedded by specific response structs. Both of these in conjunction are used primarily to house the JSON message for passing responses over the comms package (i.e. message queue), but may also contain important dependencies of the response, such as an HTTP handler.

type Response

type Response interface{}

Response is an interface to define Response behavior

type SetAgentStatusResponse

type SetAgentStatusResponse struct {
	BaseResponse
	TestUuid string `json:"TestUuid"`
	Status   string `json:"status"`
}

SetAgentStatusResponse defines this particular response.

type UploadTestDataResponse

type UploadTestDataResponse struct {
	BaseResponse
	TestUuid string `json:"TestUuid"`
	TestData string `json:"status"`
}

UploadTestDataResponse defines this particular response.

Jump to

Keyboard shortcuts

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