server

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 29, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Proxy

type Proxy interface {
	Request(ctx context.Context, r *http.Request) *http.Response
}

type Server

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

Server is the HTTP server for the proxy, which proxies all incoming requests.

func NewServer

func NewServer(
	ln net.Listener,
	proxy Proxy,
	conf *config.ProxyConfig,
	registry *prometheus.Registry,
	logger log.Logger,
) *Server

func (*Server) Serve

func (s *Server) Serve() error

func (*Server) Shutdown

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

Jump to

Keyboard shortcuts

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