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

Function WithAppConfig

pkg/webui/template.go:168–170  ·  view source on GitHub ↗

WithAppConfig constructs a *http.Request which has the provided app config attached.

(r *http.Request, cfg any)

Source from the content-addressed store, hash-verified

166
167// WithAppConfig constructs a *http.Request which has the provided app config attached.
168func WithAppConfig(r *http.Request, cfg any) *http.Request {
169 return r.WithContext(context.WithValue(r.Context(), appConfigKey, cfg))
170}
171
172type pageDataKeyType struct{}
173

Callers 3

RegisterRoutesMethod · 0.92
RegisterRoutesMethod · 0.92
RegisterRoutesMethod · 0.92

Calls 1

ContextMethod · 0.65

Tested by

no test coverage detected