Documentation
¶
Index ¶
Constants ¶
View Source
const ( ProtocolVersion = "redeven-desktop-placement-h2/1" HelloPath = "/redeven/placement/v1/hello" ShutdownRuntimePath = "/redeven/placement/v1/actions/shutdown-runtime" BridgeAuthority = "redeven-placement" ErrorCodeHeader = "X-Redeven-Placement-Error-Code" )
View Source
const ( MaxConcurrentStreams = 64 MaxHeaderListBytes = 8 << 10 MaxControlResponseBytes = 1 << 20 StreamReceiveWindowBytes = 256 << 10 SessionReceiveWindowBytes = 16 << 20 )
View Source
const ( ErrorInvalidRequest = "INVALID_REQUEST" ErrorSurfaceDialFailed = "SURFACE_DIAL_FAILED" )
Variables ¶
This section is empty.
Functions ¶
func ProbeSurface ¶ added in v0.10.0
func ProbeSurface(ctx context.Context, dial SurfaceDialer, surface StreamSurface) error
Types ¶
type GatewayProtocol ¶ added in v0.7.1
type GatewayProtocol struct {
Available bool `json:"available"`
}
type GatewayService ¶ added in v0.10.0
type Hello ¶
type Hello struct {
ProtocolVersion string `json:"protocol_version"`
RuntimeVersion string `json:"runtime_version"`
RuntimeCommit string `json:"runtime_commit,omitempty"`
StartedAtUnixMS int64 `json:"started_at_unix_ms,omitempty"`
LocalUI HelloLocalUI `json:"local_ui"`
RuntimeControl RuntimeControl `json:"runtime_control"`
RuntimeService any `json:"runtime_service"`
GatewayProtocol GatewayProtocol `json:"gateway_protocol,omitempty"`
GatewayService *GatewayService `json:"gateway_service,omitempty"`
}
type HelloLocalUI ¶
type RuntimeControl ¶
type Server ¶
type Server struct {
DialSurface SurfaceDialer
Hello Hello
OnShutdown func()
}
type StreamSurface ¶
type StreamSurface string
const ( StreamSurfaceLocalUI StreamSurface = "local_ui" StreamSurfaceRuntimeControl StreamSurface = "runtime_control" StreamSurfaceGatewayProtocol StreamSurface = "gateway_protocol" )
func SurfaceFromAuthority ¶ added in v0.13.0
func SurfaceFromAuthority(authority string) (StreamSurface, bool)
func (StreamSurface) Authority ¶ added in v0.13.0
func (surface StreamSurface) Authority() string
type SurfaceDialer ¶
func NewGatewaySurfaceDialer ¶ added in v0.10.0
func NewGatewaySurfaceDialer(gatewayURL string, managedGatewayBridgeToken string) SurfaceDialer
func NewTrustedBridgeSurfaceDialer ¶ added in v0.10.0
func NewTrustedBridgeSurfaceDialer(localUIBridgeURL string, runtimeControlURL string) (SurfaceDialer, error)
Click to show internal directories.
Click to hide internal directories.