Documentation
¶
Index ¶
- Constants
- type HTTPHandler
- type OpenRequest
- type Preview
- type Registry
- func (r *Registry) CancelStream(streamID string)
- func (r *Registry) Close(previewID string)
- func (r *Registry) Get(previewID string) (Preview, bool)
- func (r *Registry) Open(_ context.Context, req OpenRequest) error
- func (r *Registry) RegisterStream(previewID, streamID string) (context.Context, context.CancelFunc, bool)
- func (r *Registry) UnregisterStream(previewID, streamID string)
- type Sender
- type Target
- type WebSocketBridge
Constants ¶
View Source
const ( DefaultChunkBytes = 196608 DefaultMaxFrameBytes = 1048576 DefaultMaxActiveStreams = 32 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPHandler ¶
func (*HTTPHandler) Handle ¶
func (h *HTTPHandler) Handle(ctx context.Context, msg *protocol.PreviewHTTPRequest) error
type OpenRequest ¶
type Preview ¶
type Preview struct {
OpenRequest
// contains filtered or unexported fields
}
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
func NewRegistry ¶
func NewRegistry() *Registry
func (*Registry) CancelStream ¶
func (*Registry) RegisterStream ¶
func (*Registry) UnregisterStream ¶
type WebSocketBridge ¶
type WebSocketBridge struct {
Registry *Registry
Sender Sender
// contains filtered or unexported fields
}
func NewWebSocketBridge ¶
func NewWebSocketBridge(registry *Registry, sender Sender) *WebSocketBridge
func (*WebSocketBridge) Close ¶
func (b *WebSocketBridge) Close(ctx context.Context, msg *protocol.PreviewWebSocketClose) error
func (*WebSocketBridge) Data ¶
func (b *WebSocketBridge) Data(ctx context.Context, msg *protocol.PreviewWebSocketData) error
func (*WebSocketBridge) Open ¶
func (b *WebSocketBridge) Open(ctx context.Context, msg *protocol.PreviewWebSocketOpen) error
Click to show internal directories.
Click to hide internal directories.