stream

package
v0.0.0-...-1c4d217 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultWebSocketUpgrader = &websocket.FastHTTPUpgrader{
	ReadBufferSize:  1024,
	WriteBufferSize: 1024,
}

Default web socket upgrader to upgrade the incoming connections

Functions

This section is empty.

Types

type WSStreamReverseProxy

type WSStreamReverseProxy struct {
	// This method should not be nul
	// It prepares the stream which should be send to client
	// As an example streaming kubernetes Pod logs somewhere, for example, using selenoid-ui
	// Error will be thrown if this field will be set to nil or not used
	// Mandatory
	PrepareStream func() (io.ReadCloser, error)
	// Upgrader is used to upgrade regular http connection into WenSocket one
	Upgrader *websocket.FastHTTPUpgrader
}

func (*WSStreamReverseProxy) ProxyStream

func (p *WSStreamReverseProxy) ProxyStream(ctx *fiber.Ctx) error

Jump to

Keyboard shortcuts

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