displayconsts

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2017 License: MPL-2.0 Imports: 2 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	// DisplayHandshakeTimeout is the maximum allowed time for websocket handshake
	DisplayHandshakeTimeout = 30 * time.Second
	// DisplayPingInterval is the time between sending pings
	DisplayPingInterval = 5 * time.Second
	// DisplayWriteTimeout is the maximum time between successful writes
	DisplayWriteTimeout = 10 * time.Second
	// DisplayPongTimeout is the maximum time between successful reads
	DisplayPongTimeout = 30 * time.Second
	// DisplayBufferSize is the internal buffer size, and size of buffer used for
	// sending messages.
	DisplayBufferSize = 32 * 1024
	// DisplayMaxMessageSize is the maximum message size we will read
	DisplayMaxMessageSize = 64 * 1024
)
View Source
const (
	// ErrorCodeDisplayNotFound signals that the given display couldn't be found
	ErrorCodeDisplayNotFound = "DisplayNotFound"
	// ErrorCodeExecutionTerminated indicates that the sandbox terminated, hence,
	// interactive displays can't be opened anymore
	ErrorCodeExecutionTerminated = "ExecutionTerminated"
	// ErrorCodeInternalError indicates some internal error, likely a connection
	// error or something.
	ErrorCodeInternalError = "InternalError"
	// ErrorCodeInvalidParameters indicates that the given display parameter isn't
	// valid, likely it's missing.
	ErrorCodeInvalidParameters = "InvalidParameters"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DisplayEntry

type DisplayEntry struct {
	Display     string `json:"display"`
	Description string `json:"description"`
	Width       int    `json:"width,omitempty"`
	Height      int    `json:"height,omitempty"`
}

A 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.

type ErrorMessage

type ErrorMessage struct {
	Code    string `json:"code"`
	Message string `json:"message"`
}

An ErrorMessage payload is returned from the socketURL if an error occurred when connecting.

func (*ErrorMessage) Error

func (e *ErrorMessage) Error() string

Error returns a string presentation of the ErrorMessage satifying the error interface.

Jump to

Keyboard shortcuts

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