serve

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2023 License: MIT Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCA

func NewCA() (res certWrapper, err error)

func NewDashboard

func NewDashboard(
	refresher *refresher.Refresher,
	probe *probe.Probe,
	stats *stats.Stats) *dashboard

Types

type Card

type Card struct {
	Name      string
	Value     interface{}
	Increment interface{}
}

type Dashboard

type Dashboard struct {
	Cards   []Card
	Refresh []src
}

type HttpProxyServer added in v0.0.4

type HttpProxyServer struct {
	http.Server
	// contains filtered or unexported fields
}

func NewTransparentProxy added in v0.0.7

func NewTransparentProxy() *HttpProxyServer

func (*HttpProxyServer) Listen added in v0.0.4

func (srv *HttpProxyServer) Listen() (err error)

func (*HttpProxyServer) ListenAndServe added in v0.0.4

func (srv *HttpProxyServer) ListenAndServe() error

ListenAndServe uses listener configured in Start method, so that this type could be reused for both testing and real serving

func (*HttpProxyServer) Proxy added in v0.0.4

func (srv *HttpProxyServer) Proxy() pmux.Proxy

func (*HttpProxyServer) ServeHTTP added in v0.0.4

func (srv *HttpProxyServer) ServeHTTP(rw http.ResponseWriter, r *http.Request)

func (*HttpProxyServer) String added in v0.0.7

func (srv *HttpProxyServer) String() string

type HttpsProxyServer added in v0.0.7

type HttpsProxyServer struct {
	HttpProxyServer
	// contains filtered or unexported fields
}

func NewTransparentHttpsProxy added in v0.0.7

func NewTransparentHttpsProxy() *HttpsProxyServer

func (*HttpsProxyServer) ListenAndServe added in v0.0.7

func (srv *HttpsProxyServer) ListenAndServe() error

ListenAndServe uses listener configured in Start method, so that this type could be reused for both testing and real serving

func (*HttpsProxyServer) Proxy added in v0.0.7

func (srv *HttpsProxyServer) Proxy() pmux.Proxy

func (*HttpsProxyServer) String added in v0.0.7

func (srv *HttpsProxyServer) String() string

type MitmProxyServer

type MitmProxyServer struct {
	HttpsProxyServer
	// contains filtered or unexported fields
}

func NewMitmProxyServer

func NewMitmProxyServer(pool *pool.Pool, ca certWrapper) *MitmProxyServer

func (*MitmProxyServer) Configure added in v0.0.4

func (mps *MitmProxyServer) Configure(c app.Config) error

func (*MitmProxyServer) ServeHTTP

func (mps *MitmProxyServer) ServeHTTP(rw http.ResponseWriter, r *http.Request)

func (*MitmProxyServer) Start

func (mps *MitmProxyServer) Start(ctx app.Context)

Jump to

Keyboard shortcuts

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