headend

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: May 6, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package headend provides an SSH server that translates exec commands into HTTP requests to a remote site proxy. This is the "headend" half of the SSH-to-HTTP transparent WAN tunnel — it sits near the automation server and converts SSH to HTTP for efficient WAN transport.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server is an SSH server that forwards commands via HTTP to a site proxy.

func New

func New(addr, backendURL, user, pass, transport string) (*Server, error)

New creates a headend proxy. Transport is "https" or "http3".

func (*Server) Addr

func (s *Server) Addr() string

Addr returns the listener's address.

func (*Server) Close

func (s *Server) Close() error

Close stops the server. Close stops the server and releases the HTTP client.

func (*Server) ListenAndServe

func (s *Server) ListenAndServe() error

ListenAndServe starts accepting SSH connections.

func (*Server) SetListener

func (s *Server) SetListener(ln net.Listener)

SetListener sets a custom net.Listener.

Jump to

Keyboard shortcuts

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