Documentation ¶
Overview ¶
Package proxy provides a http proxy
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BackendHost ¶
type BackendHost struct { // address of the backend host Addr string // if true we use http connection Insecure bool }
BackendHost is a host we want to proxy to
type Options ¶
type Options struct { ListenAddress string LogFile string Backends map[string]*BackendHost BasicAuthEnabled bool BasicAuthRealm string BasicAuthUsers map[string]string }
Options used in configuring the proxy
func DefaultOptions ¶
func DefaultOptions() *Options
DefaultOptions returns a generic, default options mainly useful for testing
Click to show internal directories.
Click to hide internal directories.