pipe

package
v0.0.0-...-0c70d8f Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Log            = "agent_log"
	Exec           = "agent_exec"
	IntervalTime   = 3 * time.Second
	CloseWaitTime  = 5 * time.Second
	MaxMessageSize = 524288
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Pipe

type Pipe interface {
	CopyToWebsocketForLog(io.ReadWriter, *websocket.Conn) error
	CopyToWebsocketForExec(io.ReadWriter, *websocket.Conn) error
	Ends() (io.ReadWriter, io.ReadWriter)

	Close() error
	Closed() bool
	OnClose(func())
	PipeType() string
}

func NewPipe

func NewPipe(pipeType string) Pipe

func NewPipeFromEnds

func NewPipeFromEnds(local, remote io.ReadWriter, pipeType string) Pipe

Jump to

Keyboard shortcuts

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