protocols

package
v0.0.0-...-080cc8f Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2026 License: Unlicense Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPHandler

type HTTPHandler struct {
	// contains filtered or unexported fields
}

HTTPHandler handles HTTP file serving and proxy requests

func NewHTTPHandler

func NewHTTPHandler(serveDir, serverAddress string) *HTTPHandler

NewHTTPHandler creates a new HTTP handler

func (*HTTPHandler) Handle

func (h *HTTPHandler) Handle(conn net.Conn) error

Handle processes HTTP connections

func (*HTTPHandler) HandleListener

func (h *HTTPHandler) HandleListener(ctx context.Context, listener net.Listener) error

HandleListener handles connections from a listener (for HTTPS CONNECT)

type SSHHandler

type SSHHandler struct {
	// contains filtered or unexported fields
}

SSHHandler handles SSH tunneling connections

func NewSSHHandler

func NewSSHHandler(password string) (*SSHHandler, error)

NewSSHHandler creates a new SSH handler

func (*SSHHandler) Handle

func (h *SSHHandler) Handle(conn net.Conn) error

Handle processes SSH connections

type ShellHandler

type ShellHandler struct {
	// contains filtered or unexported fields
}

ShellHandler handles shell connections

func NewShellHandler

func NewShellHandler(
	cfg *config.Config,
	tmuxMgr *tmux.Manager,
	socketMgr *socket.Manager,
	pluginMgr *plugins.Manager,
	connStr string,
) *ShellHandler

NewShellHandler creates a new shell handler

func (*ShellHandler) Handle

func (h *ShellHandler) Handle(conn net.Conn) error

Handle processes shell connections

func (*ShellHandler) HandleListener

func (h *ShellHandler) HandleListener(ctx context.Context, listener net.Listener) error

HandleListener handles incoming shell connections on a listener

type WebDAVHandler

type WebDAVHandler struct {
	// contains filtered or unexported fields
}

WebDAVHandler wraps the standard library WebDAV handler

func NewWebDAVHandler

func NewWebDAVHandler(serveDir string) *WebDAVHandler

NewWebDAVHandler creates a new WebDAV handler using stdlib implementation

func (*WebDAVHandler) HandleRequest

func (h *WebDAVHandler) HandleRequest(w http.ResponseWriter, r *http.Request)

HandleRequest processes a WebDAV HTTP request using stdlib handler

Jump to

Keyboard shortcuts

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