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

Function Example

eskipfile/example_test.go:9–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7)
8
9func Example() {
10 // open file with a routing table:
11 dataClient := eskipfile.Watch("/some/path/to/routing-table.eskip")
12 defer dataClient.Close()
13
14 // create a routing object:
15 rt := routing.New(routing.Options{
16 DataClients: []routing.DataClient{dataClient},
17 })
18 defer rt.Close()
19
20 // create an http.Handler:
21 p := proxy.New(rt, proxy.OptionsNone)
22 defer p.Close()
23}

Callers

nothing calls this directly

Calls 4

WatchFunction · 0.92
NewFunction · 0.92
NewFunction · 0.92
CloseMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…