proxy

package
v2.17.4 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2026 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewsseHandler

func NewsseHandler() *sseHandler

func NotifyProxy

func NotifyProxy(host string, port int) error

NotifyProxy helper to send reload via POST

Types

type ProxyHelper

type ProxyHelper struct {
	URL    string
	Target *url.URL

	Sse *sseHandler
	// contains filtered or unexported fields
}

func NewProxyHelper

func NewProxyHelper() ProxyHelper

func (*ProxyHelper) RunProxy

func (proxy *ProxyHelper) RunProxy(bind string, port int, target *url.URL) error

RunProxy configures and starts the proxy server with bind, port, and target

func (*ProxyHelper) SendSSE

func (proxy *ProxyHelper) SendSSE(eventType, data string)

SSE send via ProxyHelper

func (*ProxyHelper) ServeHTTP

func (proxy *ProxyHelper) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP handles internal routes and normal proxying

Jump to

Keyboard shortcuts

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