Documentation
¶
Index ¶
- func AcquireDisplayPath(name string) string
- func BuildAcquirePayload(displayAcquireBody string, displayAcquireName string, ...) (*display.DisplayControlPayload, error)
- func BuildCapabilityPayload(displayCapabilityName string, displayCapabilityNamespace string) (*display.CapabilityPayload, error)
- func BuildJoinPayload(displayJoinBody string, displayJoinName string, displayJoinNamespace string) (*display.JoinDisplayPayload, error)
- func BuildLeavePayload(displayLeaveName string, displayLeaveParticipantID string, ...) (*display.LeaveDisplayPayload, error)
- func BuildReleasePayload(displayReleaseBody string, displayReleaseName string, ...) (*display.DisplayControlPayload, error)
- func BuildStatusPayload(displayStatusName string, displayStatusNamespace string) (*display.StatusPayload, error)
- func BuildTransferPayload(displayTransferBody string, displayTransferName string, ...) (*display.DisplayControlPayload, error)
- func CapabilityDisplayPath(name string) string
- func DecodeAcquireResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (any, error)
- func DecodeCapabilityResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (any, error)
- func DecodeJoinResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (any, error)
- func DecodeLeaveResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (any, error)
- func DecodeReleaseResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (any, error)
- func DecodeStatusResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (any, error)
- func DecodeTransferResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (any, error)
- func EncodeAcquireRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, any) error
- func EncodeCapabilityRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, any) error
- func EncodeJoinRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, any) error
- func EncodeLeaveRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, any) error
- func EncodeReleaseRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, any) error
- func EncodeStatusRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, any) error
- func EncodeTransferRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, any) error
- func JoinDisplayPath(name string) string
- func LeaveDisplayPath(name string, participantID string) string
- func NewAcquireConflict(body string) display.Conflict
- func NewAcquireDisplayControlOK(body *AcquireResponseBody) *displayviews.DisplayControlView
- func NewAcquireForbidden(body string) display.Forbidden
- func NewAcquireInvalid(body string) display.Invalid
- func NewAcquireNotFound(body string) display.NotFound
- func NewAcquireUnauthorized(body string) display.Unauthorized
- func NewCapabilityDisplayCapabilityOK(body *CapabilityResponseBody) *displayviews.DisplayCapabilityView
- func NewCapabilityForbidden(body string) display.Forbidden
- func NewCapabilityNotFound(body string) display.NotFound
- func NewCapabilityUnauthorized(body string) display.Unauthorized
- func NewJoinCapacity(body string) display.Capacity
- func NewJoinConflict(body string) display.Conflict
- func NewJoinDisplayJoinOK(body *JoinResponseBody) *displayviews.DisplayJoinView
- func NewJoinForbidden(body string) display.Forbidden
- func NewJoinInvalid(body string) display.Invalid
- func NewJoinNotFound(body string) display.NotFound
- func NewJoinUnauthorized(body string) display.Unauthorized
- func NewLeaveForbidden(body string) display.Forbidden
- func NewLeaveNotFound(body string) display.NotFound
- func NewLeaveResultOK(body *LeaveResponseBody) *display.LeaveResult
- func NewLeaveUnauthorized(body string) display.Unauthorized
- func NewReleaseConflict(body string) display.Conflict
- func NewReleaseDisplayControlOK(body *ReleaseResponseBody) *displayviews.DisplayControlView
- func NewReleaseForbidden(body string) display.Forbidden
- func NewReleaseNotFound(body string) display.NotFound
- func NewReleaseUnauthorized(body string) display.Unauthorized
- func NewStatusDisplayStatusOK(body *StatusResponseBody) *displayviews.DisplayStatusView
- func NewStatusForbidden(body string) display.Forbidden
- func NewStatusNotFound(body string) display.NotFound
- func NewStatusUnauthorized(body string) display.Unauthorized
- func NewTransferConflict(body string) display.Conflict
- func NewTransferDisplayControlOK(body *TransferResponseBody) *displayviews.DisplayControlView
- func NewTransferForbidden(body string) display.Forbidden
- func NewTransferInvalid(body string) display.Invalid
- func NewTransferNotFound(body string) display.NotFound
- func NewTransferUnauthorized(body string) display.Unauthorized
- func ReleaseDisplayPath(name string) string
- func StatusDisplayPath(name string) string
- func TransferDisplayPath(name string) string
- func ValidateDisplayCapabilityResponseBody(body *DisplayCapabilityResponseBody) (err error)
- func ValidateLeaveResponseBody(body *LeaveResponseBody) (err error)
- func ValidateParticipantResponseBody(body *ParticipantResponseBody) (err error)
- type AcquireRequestBody
- type AcquireResponseBody
- type CapabilityResponseBody
- type Client
- func (c *Client) Acquire() goa.Endpoint
- func (c *Client) BuildAcquireRequest(ctx context.Context, v any) (*http.Request, error)
- func (c *Client) BuildCapabilityRequest(ctx context.Context, v any) (*http.Request, error)
- func (c *Client) BuildJoinRequest(ctx context.Context, v any) (*http.Request, error)
- func (c *Client) BuildLeaveRequest(ctx context.Context, v any) (*http.Request, error)
- func (c *Client) BuildReleaseRequest(ctx context.Context, v any) (*http.Request, error)
- func (c *Client) BuildStatusRequest(ctx context.Context, v any) (*http.Request, error)
- func (c *Client) BuildTransferRequest(ctx context.Context, v any) (*http.Request, error)
- func (c *Client) Capability() goa.Endpoint
- func (c *Client) Join() goa.Endpoint
- func (c *Client) Leave() goa.Endpoint
- func (c *Client) Release() goa.Endpoint
- func (c *Client) Status() goa.Endpoint
- func (c *Client) Transfer() goa.Endpoint
- type DisplayCapabilityResponseBody
- type JoinRequestBody
- type JoinResponseBody
- type LeaveResponseBody
- type ParticipantResponseBody
- type ReleaseRequestBody
- type ReleaseResponseBody
- type StatusResponseBody
- type TransferRequestBody
- type TransferResponseBody
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AcquireDisplayPath ¶
AcquireDisplayPath returns the URL path to the display service acquire HTTP endpoint.
func BuildAcquirePayload ¶
func BuildAcquirePayload(displayAcquireBody string, displayAcquireName string, displayAcquireNamespace string) (*display.DisplayControlPayload, error)
BuildAcquirePayload builds the payload for the display acquire endpoint from CLI flags.
func BuildCapabilityPayload ¶
func BuildCapabilityPayload(displayCapabilityName string, displayCapabilityNamespace string) (*display.CapabilityPayload, error)
BuildCapabilityPayload builds the payload for the display capability endpoint from CLI flags.
func BuildJoinPayload ¶
func BuildJoinPayload(displayJoinBody string, displayJoinName string, displayJoinNamespace string) (*display.JoinDisplayPayload, error)
BuildJoinPayload builds the payload for the display join endpoint from CLI flags.
func BuildLeavePayload ¶
func BuildLeavePayload(displayLeaveName string, displayLeaveParticipantID string, displayLeaveNamespace string) (*display.LeaveDisplayPayload, error)
BuildLeavePayload builds the payload for the display leave endpoint from CLI flags.
func BuildReleasePayload ¶
func BuildReleasePayload(displayReleaseBody string, displayReleaseName string, displayReleaseNamespace string) (*display.DisplayControlPayload, error)
BuildReleasePayload builds the payload for the display release endpoint from CLI flags.
func BuildStatusPayload ¶
func BuildStatusPayload(displayStatusName string, displayStatusNamespace string) (*display.StatusPayload, error)
BuildStatusPayload builds the payload for the display status endpoint from CLI flags.
func BuildTransferPayload ¶
func BuildTransferPayload(displayTransferBody string, displayTransferName string, displayTransferNamespace string) (*display.DisplayControlPayload, error)
BuildTransferPayload builds the payload for the display transfer endpoint from CLI flags.
func CapabilityDisplayPath ¶
CapabilityDisplayPath returns the URL path to the display service capability HTTP endpoint.
func DecodeAcquireResponse ¶
func DecodeAcquireResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (any, error)
DecodeAcquireResponse returns a decoder for responses returned by the display acquire endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeAcquireResponse may return the following errors:
- "conflict" (type display.Conflict): http.StatusConflict
- "forbidden" (type display.Forbidden): http.StatusForbidden
- "invalid" (type display.Invalid): http.StatusBadRequest
- "not_found" (type display.NotFound): http.StatusNotFound
- "unauthorized" (type display.Unauthorized): http.StatusUnauthorized
- error: internal error
func DecodeCapabilityResponse ¶
func DecodeCapabilityResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (any, error)
DecodeCapabilityResponse returns a decoder for responses returned by the display capability endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeCapabilityResponse may return the following errors:
- "forbidden" (type display.Forbidden): http.StatusForbidden
- "not_found" (type display.NotFound): http.StatusNotFound
- "unauthorized" (type display.Unauthorized): http.StatusUnauthorized
- error: internal error
func DecodeJoinResponse ¶
func DecodeJoinResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (any, error)
DecodeJoinResponse returns a decoder for responses returned by the display join endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeJoinResponse may return the following errors:
- "capacity" (type display.Capacity): http.StatusTooManyRequests
- "conflict" (type display.Conflict): http.StatusConflict
- "forbidden" (type display.Forbidden): http.StatusForbidden
- "invalid" (type display.Invalid): http.StatusBadRequest
- "not_found" (type display.NotFound): http.StatusNotFound
- "unauthorized" (type display.Unauthorized): http.StatusUnauthorized
- error: internal error
func DecodeLeaveResponse ¶
func DecodeLeaveResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (any, error)
DecodeLeaveResponse returns a decoder for responses returned by the display leave endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeLeaveResponse may return the following errors:
- "forbidden" (type display.Forbidden): http.StatusForbidden
- "not_found" (type display.NotFound): http.StatusNotFound
- "unauthorized" (type display.Unauthorized): http.StatusUnauthorized
- error: internal error
func DecodeReleaseResponse ¶
func DecodeReleaseResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (any, error)
DecodeReleaseResponse returns a decoder for responses returned by the display release endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeReleaseResponse may return the following errors:
- "conflict" (type display.Conflict): http.StatusConflict
- "forbidden" (type display.Forbidden): http.StatusForbidden
- "not_found" (type display.NotFound): http.StatusNotFound
- "unauthorized" (type display.Unauthorized): http.StatusUnauthorized
- error: internal error
func DecodeStatusResponse ¶
func DecodeStatusResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (any, error)
DecodeStatusResponse returns a decoder for responses returned by the display status endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeStatusResponse may return the following errors:
- "forbidden" (type display.Forbidden): http.StatusForbidden
- "not_found" (type display.NotFound): http.StatusNotFound
- "unauthorized" (type display.Unauthorized): http.StatusUnauthorized
- error: internal error
func DecodeTransferResponse ¶
func DecodeTransferResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (any, error)
DecodeTransferResponse returns a decoder for responses returned by the display transfer endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeTransferResponse may return the following errors:
- "conflict" (type display.Conflict): http.StatusConflict
- "forbidden" (type display.Forbidden): http.StatusForbidden
- "invalid" (type display.Invalid): http.StatusBadRequest
- "not_found" (type display.NotFound): http.StatusNotFound
- "unauthorized" (type display.Unauthorized): http.StatusUnauthorized
- error: internal error
func EncodeAcquireRequest ¶
func EncodeAcquireRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, any) error
EncodeAcquireRequest returns an encoder for requests sent to the display acquire server.
func EncodeCapabilityRequest ¶
func EncodeCapabilityRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, any) error
EncodeCapabilityRequest returns an encoder for requests sent to the display capability server.
func EncodeJoinRequest ¶
EncodeJoinRequest returns an encoder for requests sent to the display join server.
func EncodeLeaveRequest ¶
EncodeLeaveRequest returns an encoder for requests sent to the display leave server.
func EncodeReleaseRequest ¶
func EncodeReleaseRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, any) error
EncodeReleaseRequest returns an encoder for requests sent to the display release server.
func EncodeStatusRequest ¶
func EncodeStatusRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, any) error
EncodeStatusRequest returns an encoder for requests sent to the display status server.
func EncodeTransferRequest ¶
func EncodeTransferRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, any) error
EncodeTransferRequest returns an encoder for requests sent to the display transfer server.
func JoinDisplayPath ¶
JoinDisplayPath returns the URL path to the display service join HTTP endpoint.
func LeaveDisplayPath ¶
LeaveDisplayPath returns the URL path to the display service leave HTTP endpoint.
func NewAcquireConflict ¶
NewAcquireConflict builds a display service acquire endpoint conflict error.
func NewAcquireDisplayControlOK ¶
func NewAcquireDisplayControlOK(body *AcquireResponseBody) *displayviews.DisplayControlView
NewAcquireDisplayControlOK builds a "display" service "acquire" endpoint result from a HTTP "OK" response.
func NewAcquireForbidden ¶
NewAcquireForbidden builds a display service acquire endpoint forbidden error.
func NewAcquireInvalid ¶
NewAcquireInvalid builds a display service acquire endpoint invalid error.
func NewAcquireNotFound ¶
NewAcquireNotFound builds a display service acquire endpoint not_found error.
func NewAcquireUnauthorized ¶
func NewAcquireUnauthorized(body string) display.Unauthorized
NewAcquireUnauthorized builds a display service acquire endpoint unauthorized error.
func NewCapabilityDisplayCapabilityOK ¶
func NewCapabilityDisplayCapabilityOK(body *CapabilityResponseBody) *displayviews.DisplayCapabilityView
NewCapabilityDisplayCapabilityOK builds a "display" service "capability" endpoint result from a HTTP "OK" response.
func NewCapabilityForbidden ¶
NewCapabilityForbidden builds a display service capability endpoint forbidden error.
func NewCapabilityNotFound ¶
NewCapabilityNotFound builds a display service capability endpoint not_found error.
func NewCapabilityUnauthorized ¶
func NewCapabilityUnauthorized(body string) display.Unauthorized
NewCapabilityUnauthorized builds a display service capability endpoint unauthorized error.
func NewJoinCapacity ¶
NewJoinCapacity builds a display service join endpoint capacity error.
func NewJoinConflict ¶
NewJoinConflict builds a display service join endpoint conflict error.
func NewJoinDisplayJoinOK ¶
func NewJoinDisplayJoinOK(body *JoinResponseBody) *displayviews.DisplayJoinView
NewJoinDisplayJoinOK builds a "display" service "join" endpoint result from a HTTP "OK" response.
func NewJoinForbidden ¶
NewJoinForbidden builds a display service join endpoint forbidden error.
func NewJoinInvalid ¶
NewJoinInvalid builds a display service join endpoint invalid error.
func NewJoinNotFound ¶
NewJoinNotFound builds a display service join endpoint not_found error.
func NewJoinUnauthorized ¶
func NewJoinUnauthorized(body string) display.Unauthorized
NewJoinUnauthorized builds a display service join endpoint unauthorized error.
func NewLeaveForbidden ¶
NewLeaveForbidden builds a display service leave endpoint forbidden error.
func NewLeaveNotFound ¶
NewLeaveNotFound builds a display service leave endpoint not_found error.
func NewLeaveResultOK ¶
func NewLeaveResultOK(body *LeaveResponseBody) *display.LeaveResult
NewLeaveResultOK builds a "display" service "leave" endpoint result from a HTTP "OK" response.
func NewLeaveUnauthorized ¶
func NewLeaveUnauthorized(body string) display.Unauthorized
NewLeaveUnauthorized builds a display service leave endpoint unauthorized error.
func NewReleaseConflict ¶
NewReleaseConflict builds a display service release endpoint conflict error.
func NewReleaseDisplayControlOK ¶
func NewReleaseDisplayControlOK(body *ReleaseResponseBody) *displayviews.DisplayControlView
NewReleaseDisplayControlOK builds a "display" service "release" endpoint result from a HTTP "OK" response.
func NewReleaseForbidden ¶
NewReleaseForbidden builds a display service release endpoint forbidden error.
func NewReleaseNotFound ¶
NewReleaseNotFound builds a display service release endpoint not_found error.
func NewReleaseUnauthorized ¶
func NewReleaseUnauthorized(body string) display.Unauthorized
NewReleaseUnauthorized builds a display service release endpoint unauthorized error.
func NewStatusDisplayStatusOK ¶
func NewStatusDisplayStatusOK(body *StatusResponseBody) *displayviews.DisplayStatusView
NewStatusDisplayStatusOK builds a "display" service "status" endpoint result from a HTTP "OK" response.
func NewStatusForbidden ¶
NewStatusForbidden builds a display service status endpoint forbidden error.
func NewStatusNotFound ¶
NewStatusNotFound builds a display service status endpoint not_found error.
func NewStatusUnauthorized ¶
func NewStatusUnauthorized(body string) display.Unauthorized
NewStatusUnauthorized builds a display service status endpoint unauthorized error.
func NewTransferConflict ¶
NewTransferConflict builds a display service transfer endpoint conflict error.
func NewTransferDisplayControlOK ¶
func NewTransferDisplayControlOK(body *TransferResponseBody) *displayviews.DisplayControlView
NewTransferDisplayControlOK builds a "display" service "transfer" endpoint result from a HTTP "OK" response.
func NewTransferForbidden ¶
NewTransferForbidden builds a display service transfer endpoint forbidden error.
func NewTransferInvalid ¶
NewTransferInvalid builds a display service transfer endpoint invalid error.
func NewTransferNotFound ¶
NewTransferNotFound builds a display service transfer endpoint not_found error.
func NewTransferUnauthorized ¶
func NewTransferUnauthorized(body string) display.Unauthorized
NewTransferUnauthorized builds a display service transfer endpoint unauthorized error.
func ReleaseDisplayPath ¶
ReleaseDisplayPath returns the URL path to the display service release HTTP endpoint.
func StatusDisplayPath ¶
StatusDisplayPath returns the URL path to the display service status HTTP endpoint.
func TransferDisplayPath ¶
TransferDisplayPath returns the URL path to the display service transfer HTTP endpoint.
func ValidateDisplayCapabilityResponseBody ¶
func ValidateDisplayCapabilityResponseBody(body *DisplayCapabilityResponseBody) (err error)
ValidateDisplayCapabilityResponseBody runs the validations defined on Display-CapabilityResponseBody
func ValidateLeaveResponseBody ¶
func ValidateLeaveResponseBody(body *LeaveResponseBody) (err error)
ValidateLeaveResponseBody runs the validations defined on LeaveResponseBody
func ValidateParticipantResponseBody ¶
func ValidateParticipantResponseBody(body *ParticipantResponseBody) (err error)
ValidateParticipantResponseBody runs the validations defined on ParticipantResponseBody
Types ¶
type AcquireRequestBody ¶
type AcquireRequestBody struct {
// Participant performing the transition. Release requires the current
// controller; acquire may be any participant; transfer requires the current
// controller
ParticipantID string `form:"participant_id" json:"participant_id" xml:"participant_id"`
// Explicit human consent to take or transfer control, demoting the current
// controller to observer. There is no silent takeover without this
Force bool `form:"force" json:"force" xml:"force"`
// Target observer participant identifier for a transfer
To *string `form:"to,omitempty" json:"to,omitempty" xml:"to,omitempty"`
}
AcquireRequestBody is the type of the "display" service "acquire" endpoint HTTP request body.
func NewAcquireRequestBody ¶
func NewAcquireRequestBody(p *display.DisplayControlPayload) *AcquireRequestBody
NewAcquireRequestBody builds the HTTP request body from the payload of the "acquire" endpoint of the "display" service.
type AcquireResponseBody ¶
type AcquireResponseBody struct {
// Controller after the transition, if any
Controller *ParticipantResponseBody `form:"controller,omitempty" json:"controller,omitempty" xml:"controller,omitempty"`
// Whether a controller was present before the transition
WasHeld *bool `form:"was_held,omitempty" json:"was_held,omitempty" xml:"was_held,omitempty"`
// True when release cleared the controller
Released *bool `form:"released,omitempty" json:"released,omitempty" xml:"released,omitempty"`
}
AcquireResponseBody is the type of the "display" service "acquire" endpoint HTTP response body.
type CapabilityResponseBody ¶
type CapabilityResponseBody struct {
// Whether shared display sessions are available for this workspace
Enabled *bool `form:"enabled,omitempty" json:"enabled,omitempty" xml:"enabled,omitempty"`
// Display protocol/API revision
Protocol *int `form:"protocol,omitempty" json:"protocol,omitempty" xml:"protocol,omitempty"`
// Supported display transports
Transports []string `form:"transports,omitempty" json:"transports,omitempty" xml:"transports,omitempty"`
// Maximum simultaneous participants (controller + observers)
MaxParticipants *int `form:"max_participants,omitempty" json:"max_participants,omitempty" xml:"max_participants,omitempty"`
// Maximum advertised guest framebuffer width
MaxWidth *int `form:"max_width,omitempty" json:"max_width,omitempty" xml:"max_width,omitempty"`
// Maximum advertised guest framebuffer height
MaxHeight *int `form:"max_height,omitempty" json:"max_height,omitempty" xml:"max_height,omitempty"`
// Display stream handshake timeout in milliseconds
HandshakeTimeoutMs *int `form:"handshake_timeout_ms,omitempty" json:"handshake_timeout_ms,omitempty" xml:"handshake_timeout_ms,omitempty"`
// Idle membership lifetime in milliseconds
ParticipantTTLMs *int `form:"participant_ttl_ms,omitempty" json:"participant_ttl_ms,omitempty" xml:"participant_ttl_ms,omitempty"`
// Current participant count
Participants *int `form:"participants,omitempty" json:"participants,omitempty" xml:"participants,omitempty"`
// Whether a controller is currently attached
ControllerPresent *bool `form:"controller_present,omitempty" json:"controller_present,omitempty" xml:"controller_present,omitempty"`
}
CapabilityResponseBody is the type of the "display" service "capability" endpoint HTTP response body.
type Client ¶
type Client struct {
// Capability Doer is the HTTP client used to make requests to the capability
// endpoint.
CapabilityDoer goahttp.Doer
// Status Doer is the HTTP client used to make requests to the status endpoint.
StatusDoer goahttp.Doer
// Join Doer is the HTTP client used to make requests to the join endpoint.
JoinDoer goahttp.Doer
// Leave Doer is the HTTP client used to make requests to the leave endpoint.
LeaveDoer goahttp.Doer
// Acquire Doer is the HTTP client used to make requests to the acquire
// endpoint.
AcquireDoer goahttp.Doer
// Release Doer is the HTTP client used to make requests to the release
// endpoint.
ReleaseDoer goahttp.Doer
// Transfer Doer is the HTTP client used to make requests to the transfer
// endpoint.
TransferDoer goahttp.Doer
// RestoreResponseBody controls whether the response bodies are reset after
// decoding so they can be read again.
RestoreResponseBody bool
// contains filtered or unexported fields
}
Client lists the display service endpoint HTTP clients.
func NewClient ¶
func NewClient( scheme string, host string, doer goahttp.Doer, enc func(*http.Request) goahttp.Encoder, dec func(*http.Response) goahttp.Decoder, restoreBody bool, ) *Client
NewClient instantiates HTTP clients for all the display service servers.
func (*Client) Acquire ¶
Acquire returns an endpoint that makes HTTP requests to the display service acquire server.
func (*Client) BuildAcquireRequest ¶
BuildAcquireRequest instantiates a HTTP request object with method and path set to call the "display" service "acquire" endpoint
func (*Client) BuildCapabilityRequest ¶
BuildCapabilityRequest instantiates a HTTP request object with method and path set to call the "display" service "capability" endpoint
func (*Client) BuildJoinRequest ¶
BuildJoinRequest instantiates a HTTP request object with method and path set to call the "display" service "join" endpoint
func (*Client) BuildLeaveRequest ¶
BuildLeaveRequest instantiates a HTTP request object with method and path set to call the "display" service "leave" endpoint
func (*Client) BuildReleaseRequest ¶
BuildReleaseRequest instantiates a HTTP request object with method and path set to call the "display" service "release" endpoint
func (*Client) BuildStatusRequest ¶
BuildStatusRequest instantiates a HTTP request object with method and path set to call the "display" service "status" endpoint
func (*Client) BuildTransferRequest ¶
BuildTransferRequest instantiates a HTTP request object with method and path set to call the "display" service "transfer" endpoint
func (*Client) Capability ¶
Capability returns an endpoint that makes HTTP requests to the display service capability server.
func (*Client) Join ¶
Join returns an endpoint that makes HTTP requests to the display service join server.
func (*Client) Leave ¶
Leave returns an endpoint that makes HTTP requests to the display service leave server.
func (*Client) Release ¶
Release returns an endpoint that makes HTTP requests to the display service release server.
type DisplayCapabilityResponseBody ¶
type DisplayCapabilityResponseBody struct {
// Whether shared display sessions are available for this workspace
Enabled *bool `form:"enabled,omitempty" json:"enabled,omitempty" xml:"enabled,omitempty"`
// Display protocol/API revision
Protocol *int `form:"protocol,omitempty" json:"protocol,omitempty" xml:"protocol,omitempty"`
// Supported display transports
Transports []string `form:"transports,omitempty" json:"transports,omitempty" xml:"transports,omitempty"`
// Maximum simultaneous participants (controller + observers)
MaxParticipants *int `form:"max_participants,omitempty" json:"max_participants,omitempty" xml:"max_participants,omitempty"`
// Maximum advertised guest framebuffer width
MaxWidth *int `form:"max_width,omitempty" json:"max_width,omitempty" xml:"max_width,omitempty"`
// Maximum advertised guest framebuffer height
MaxHeight *int `form:"max_height,omitempty" json:"max_height,omitempty" xml:"max_height,omitempty"`
// Display stream handshake timeout in milliseconds
HandshakeTimeoutMs *int `form:"handshake_timeout_ms,omitempty" json:"handshake_timeout_ms,omitempty" xml:"handshake_timeout_ms,omitempty"`
// Idle membership lifetime in milliseconds
ParticipantTTLMs *int `form:"participant_ttl_ms,omitempty" json:"participant_ttl_ms,omitempty" xml:"participant_ttl_ms,omitempty"`
// Current participant count
Participants *int `form:"participants,omitempty" json:"participants,omitempty" xml:"participants,omitempty"`
// Whether a controller is currently attached
ControllerPresent *bool `form:"controller_present,omitempty" json:"controller_present,omitempty" xml:"controller_present,omitempty"`
}
DisplayCapabilityResponseBody is used to define fields on response body types.
type JoinRequestBody ¶
type JoinRequestBody struct {
// Initial role. Defaults to observer
Role string `form:"role" json:"role" xml:"role"`
}
JoinRequestBody is the type of the "display" service "join" endpoint HTTP request body.
func NewJoinRequestBody ¶
func NewJoinRequestBody(p *display.JoinDisplayPayload) *JoinRequestBody
NewJoinRequestBody builds the HTTP request body from the payload of the "join" endpoint of the "display" service.
type JoinResponseBody ¶
type JoinResponseBody struct {
// The joined participant record
Participant *ParticipantResponseBody `form:"participant,omitempty" json:"participant,omitempty" xml:"participant,omitempty"`
// Current capability state, including the live participant count
Capability *DisplayCapabilityResponseBody `form:"capability,omitempty" json:"capability,omitempty" xml:"capability,omitempty"`
}
JoinResponseBody is the type of the "display" service "join" endpoint HTTP response body.
type LeaveResponseBody ¶
type LeaveResponseBody struct {
// Whether the participant was removed
OK *bool `form:"ok,omitempty" json:"ok,omitempty" xml:"ok,omitempty"`
}
LeaveResponseBody is the type of the "display" service "leave" endpoint HTTP response body.
type ParticipantResponseBody ¶
type ParticipantResponseBody struct {
// Opaque server-side participant identifier. A capability, not a credential;
// never sent to the guest or logged
ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
// Current role: observer (view-only) or controller. Server-enforced; a
// client-side viewOnly flag is not an authorization boundary
Role *string `form:"role,omitempty" json:"role,omitempty" xml:"role,omitempty"`
// Whether the participant is attached to a display stream
Connected *bool `form:"connected,omitempty" json:"connected,omitempty" xml:"connected,omitempty"`
// RFC 3339 timestamp when the participant joined
JoinedAt *string `form:"joined_at,omitempty" json:"joined_at,omitempty" xml:"joined_at,omitempty"`
}
ParticipantResponseBody is used to define fields on response body types.
type ReleaseRequestBody ¶
type ReleaseRequestBody struct {
// Participant performing the transition. Release requires the current
// controller; acquire may be any participant; transfer requires the current
// controller
ParticipantID string `form:"participant_id" json:"participant_id" xml:"participant_id"`
// Explicit human consent to take or transfer control, demoting the current
// controller to observer. There is no silent takeover without this
Force bool `form:"force" json:"force" xml:"force"`
// Target observer participant identifier for a transfer
To *string `form:"to,omitempty" json:"to,omitempty" xml:"to,omitempty"`
}
ReleaseRequestBody is the type of the "display" service "release" endpoint HTTP request body.
func NewReleaseRequestBody ¶
func NewReleaseRequestBody(p *display.DisplayControlPayload) *ReleaseRequestBody
NewReleaseRequestBody builds the HTTP request body from the payload of the "release" endpoint of the "display" service.
type ReleaseResponseBody ¶
type ReleaseResponseBody struct {
// Controller after the transition, if any
Controller *ParticipantResponseBody `form:"controller,omitempty" json:"controller,omitempty" xml:"controller,omitempty"`
// Whether a controller was present before the transition
WasHeld *bool `form:"was_held,omitempty" json:"was_held,omitempty" xml:"was_held,omitempty"`
// True when release cleared the controller
Released *bool `form:"released,omitempty" json:"released,omitempty" xml:"released,omitempty"`
}
ReleaseResponseBody is the type of the "display" service "release" endpoint HTTP response body.
type StatusResponseBody ¶
type StatusResponseBody struct {
// Whether shared display sessions are available for this workspace
Enabled *bool `form:"enabled,omitempty" json:"enabled,omitempty" xml:"enabled,omitempty"`
// Display protocol/API revision
Protocol *int `form:"protocol,omitempty" json:"protocol,omitempty" xml:"protocol,omitempty"`
// Capture/broker generation. Changes when a new capture owner is elected
Epoch *string `form:"epoch,omitempty" json:"epoch,omitempty" xml:"epoch,omitempty"`
// Current controller, if any
Controller *ParticipantResponseBody `form:"controller,omitempty" json:"controller,omitempty" xml:"controller,omitempty"`
// Current observers
Observers []*ParticipantResponseBody `form:"observers,omitempty" json:"observers,omitempty" xml:"observers,omitempty"`
// Total participant count (controller + observers)
Participants *int `form:"participants,omitempty" json:"participants,omitempty" xml:"participants,omitempty"`
}
StatusResponseBody is the type of the "display" service "status" endpoint HTTP response body.
type TransferRequestBody ¶
type TransferRequestBody struct {
// Participant performing the transition. Release requires the current
// controller; acquire may be any participant; transfer requires the current
// controller
ParticipantID string `form:"participant_id" json:"participant_id" xml:"participant_id"`
// Explicit human consent to take or transfer control, demoting the current
// controller to observer. There is no silent takeover without this
Force bool `form:"force" json:"force" xml:"force"`
// Target observer participant identifier for a transfer
To *string `form:"to,omitempty" json:"to,omitempty" xml:"to,omitempty"`
}
TransferRequestBody is the type of the "display" service "transfer" endpoint HTTP request body.
func NewTransferRequestBody ¶
func NewTransferRequestBody(p *display.DisplayControlPayload) *TransferRequestBody
NewTransferRequestBody builds the HTTP request body from the payload of the "transfer" endpoint of the "display" service.
type TransferResponseBody ¶
type TransferResponseBody struct {
// Controller after the transition, if any
Controller *ParticipantResponseBody `form:"controller,omitempty" json:"controller,omitempty" xml:"controller,omitempty"`
// Whether a controller was present before the transition
WasHeld *bool `form:"was_held,omitempty" json:"was_held,omitempty" xml:"was_held,omitempty"`
// True when release cleared the controller
Released *bool `form:"released,omitempty" json:"released,omitempty" xml:"released,omitempty"`
}
TransferResponseBody is the type of the "display" service "transfer" endpoint HTTP response body.