proxy

package
v0.2.731 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2024 License: MIT Imports: 19 Imported by: 2

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(log *slog.Logger, bind string, port int, target *url.URL) (h *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