MCPcopy Create free account
hub / github.com/TheThingsNetwork/lorawan-stack / WithBasePath

Function WithBasePath

pkg/fetch/basepath.go:39–44  ·  view source on GitHub ↗

WithBasePath returns an Interface, which preprends basePath to non-absolute requested paths.

(f Interface, basePath ...string)

Source from the content-addressed store, hash-verified

37
38// WithBasePath returns an Interface, which preprends basePath to non-absolute requested paths.
39func WithBasePath(f Interface, basePath ...string) Interface {
40 return basePathFetcher{
41 Interface: f,
42 basePath: append(basePath[:0:0], basePath...),
43 }
44}

Callers 3

TestWithBasePathFunction · 0.92
NewUpstreamFunction · 0.92
NewClientFunction · 0.92

Calls

no outgoing calls

Tested by 1

TestWithBasePathFunction · 0.74