MCPcopy Create free account
hub / github.com/pace/bricks / WithValue

Method WithValue

http/jsonapi/runtime.go:54–58  ·  view source on GitHub ↗

WithValue adds custom state variables to the runtime context.

(key string, value interface{})

Source from the content-addressed store, hash-verified

52
53// WithValue adds custom state variables to the runtime context.
54func (r *Runtime) WithValue(key string, value interface{}) *Runtime {
55 r.ctx[key] = value
56
57 return r
58}
59
60// Value returns a state variable in the runtime context.
61func (r *Runtime) Value(key string) interface{} {

Callers 15

InstrumentMethod · 0.95
ContextWithSinkFunction · 0.80
SinkContextTransferFunction · 0.80
RequestIDHandlerFunction · 0.80
WithValueFunction · 0.80
contextWithRequestFunction · 0.80
ContextWithTokenFunction · 0.80
contextWithRequestFunction · 0.80
RoundTripMethod · 0.80
WithLocaleFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected