proxy

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AddressHTTP  = "0.0.0.0:80"
	AddressHTTPS = "0.0.0.0:443"
)
View Source
const AcmePrefix = "/.well-known/acme-challenge/"

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	IngressManager     *manager.IngressManager
	CertificateManager *manager.CertificateManager
	// contains filtered or unexported fields
}

func NewServer

func NewServer() *Server

func (*Server) HandleAcmeChallenge

func (s *Server) HandleAcmeChallenge(w http.ResponseWriter, r *http.Request)

HandleAcmeChallenge will handle an incoming ACME request.

func (*Server) IsAcmeChallenge

func (s *Server) IsAcmeChallenge(r *http.Request) bool

IsAcmeChallenge will return true when the request contains the expected path for an ACME challenge.

func (*Server) ListenForHTTP

func (s *Server) ListenForHTTP(ctx context.Context) error

ListenForHTTP will start listening for incoming HTTP request that require to be proxied through.

func (*Server) ListenForHTTPS

func (s *Server) ListenForHTTPS(ctx context.Context) error

ListenForHTTPS will start listening for incoming HTTPS requests that required to be proxied through.

func (*Server) ServeHTTP

func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP will route the HTTP request through to the desired proxy.

func (*Server) SetLogLevel

func (s *Server) SetLogLevel(l logger.Level)

SetLogLevel overrides the log level for the reverse proxy logger.

Jump to

Keyboard shortcuts

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