MCPcopy Index your code
hub / github.com/zalando/skipper / New

Function New

proxy/proxy.go:784–791  ·  view source on GitHub ↗

New returns an initialized Proxy. Deprecated, see WithParams and Params instead.

(r *routing.Routing, options Options, pr ...PriorityRoute)

Source from the content-addressed store, hash-verified

782// New returns an initialized Proxy.
783// Deprecated, see WithParams and Params instead.
784func New(r *routing.Routing, options Options, pr ...PriorityRoute) *Proxy {
785 return WithParams(Params{
786 Routing: r,
787 Flags: Flags(options),
788 PriorityRoutes: pr,
789 CloseIdleConnsPeriod: -time.Second,
790 })
791}
792
793// WithParams returns an initialized Proxy.
794func WithParams(p Params) *Proxy {

Callers 5

ExampleFunction · 0.92
ExampleFunction · 0.92
ExamplePriorityRouteFunction · 0.92
ExampleFunction · 0.92
ExampleFilterFunction · 0.92

Calls 2

FlagsTypeAlias · 0.85
WithParamsFunction · 0.70

Tested by 5

ExampleFunction · 0.74
ExampleFunction · 0.74
ExamplePriorityRouteFunction · 0.74
ExampleFunction · 0.74
ExampleFilterFunction · 0.74