proxy

package
v0.2.663 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: MIT Imports: 15 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NotifyProxy added in v0.2.663

func NotifyProxy(host string, port int) error

Types

type Handler

type Handler struct {
	URL    string
	Target *url.URL
	// contains filtered or unexported fields
}

func New

func New(bind string, port int, target *url.URL) *Handler

func (*Handler) SendSSE

func (p *Handler) SendSSE(eventType string, data string)

func (*Handler) ServeHTTP

func (p *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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