{"modulePath":"github.com/taskcluster/taskcluster-worker","version":"v0.1.20","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package displayconsts\n\n## Constants\n\n```go\nconst (\n\t// DisplayHandshakeTimeout is the maximum allowed time for websocket handshake\n\tDisplayHandshakeTimeout = 30 * time.Second\n\t// DisplayPingInterval is the time between sending pings\n\tDisplayPingInterval = 5 * time.Second\n\t// DisplayWriteTimeout is the maximum time between successful writes\n\tDisplayWriteTimeout = 10 * time.Second\n\t// DisplayPongTimeout is the maximum time between successful reads\n\tDisplayPongTimeout = 30 * time.Second\n\t// DisplayBufferSize is the internal buffer size, and size of buffer used for\n\t// sending messages.\n\tDisplayBufferSize = 32 * 1024\n\t// DisplayMaxMessageSize is the maximum message size we will read\n\tDisplayMaxMessageSize = 64 * 1024\n)\n```\n\n```go\nconst (\n\t// ErrorCodeDisplayNotFound signals that the given display couldn't be found\n\tErrorCodeDisplayNotFound = \"DisplayNotFound\"\n\t// ErrorCodeExecutionTerminated indicates that the sandbox terminated, hence,\n\t// interactive displays can't be opened anymore\n\tErrorCodeExecutionTerminated = \"ExecutionTerminated\"\n\t// ErrorCodeInternalError indicates some internal error, likely a connection\n\t// error or something.\n\tErrorCodeInternalError = \"InternalError\"\n\t// ErrorCodeInvalidParameters indicates that the given display parameter isn't\n\t// valid, likely it's missing.\n\tErrorCodeInvalidParameters = \"InvalidParameters\"\n)\n```\n\n## Types\n\n```go\ntype DisplayEntry struct {\n\tDisplay     string `json:\"display\"`\n\tDescription string `json:\"description\"`\n\tWidth       int    `json:\"width,omitempty\"`\n\tHeight      int    `json:\"height,omitempty\"`\n}\n```\nA DisplayEntry list is returned from the socketURL when listing displays. Any request that doesn't try to upgrade the request to a websocket will get a list of displays as response.\n\n```go\ntype ErrorMessage struct {\n\tCode    string `json:\"code\"`\n\tMessage string `json:\"message\"`\n}\n```\nAn ErrorMessage payload is returned from the socketURL if an error occurred when connecting.\n\n```go\nfunc (e *ErrorMessage) Error() string\n```\nError returns a string presentation of the ErrorMessage satifying the error interface.\n\n","path":"github.com/taskcluster/taskcluster-worker/plugins/interactive/displayconsts","name":"displayconsts","synopsis":"","isRedistributable":true}
