proxy

package
v0.0.0-...-0f0f3a0 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2023 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder struct {
	Router  *http.ServeMux
	Monitor monitor.Monitor
	// contains filtered or unexported fields
}

func NewBuilder

func NewBuilder() *Builder

func (*Builder) Build

func (b *Builder) Build() *http.Server

func (*Builder) WithHandlerFunc

func (b *Builder) WithHandlerFunc(pattern string, handlerFunc func(w http.ResponseWriter, r *http.Request)) *Builder

func (*Builder) WithMonitor

func (b *Builder) WithMonitor(monitor monitor.Monitor) *Builder

func (*Builder) WithPort

func (b *Builder) WithPort(port uint16) *Builder

func (*Builder) WithProxyTarget

func (b *Builder) WithProxyTarget(url string) *Builder

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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