Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewsseHandler ¶
func NewsseHandler() *sseHandler
func NotifyProxy ¶
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 ¶
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
Click to show internal directories.
Click to hide internal directories.