proxy

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 31, 2026 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Router

type Router struct {
	Routes []*RuntimeRoute
}

func NewRouter

func NewRouter(cfg *config.Config) *Router

func (*Router) ServeHTTP

func (r *Router) ServeHTTP(w http.ResponseWriter, req *http.Request)

type RuntimeRoute

type RuntimeRoute struct {
	Config           config.Route
	Targets          []*RuntimeTarget
	FlattenedTargets []*RuntimeTarget
	Counter          uint64
}

type RuntimeTarget

type RuntimeTarget struct {
	URL   string
	Proxy *httputil.ReverseProxy
}

type Server

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

func NewServer

func NewServer(cfg *config.Config) (*Server, error)

func (*Server) Start

func (s *Server) Start() error

type TLSManager

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

func NewTLSManager

func NewTLSManager(cfg *config.Config) (*TLSManager, error)

func (*TLSManager) GetTLSConfig

func (m *TLSManager) GetTLSConfig() *tls.Config

func (*TLSManager) HTTPHandler

func (m *TLSManager) HTTPHandler(fallback http.Handler) http.Handler

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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