MCPcopy
hub / github.com/evcc-io/evcc / handleGetter

Method handleGetter

plugin/javascript.go:120–129  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

118}
119
120func (p *Javascript) handleGetter() (any, error) {
121 if err := transformInputs(p.in, p.setParamSync); err != nil {
122 return nil, err
123 }
124
125 javascript.Lock()
126 defer javascript.Unlock()
127
128 return p.evaluate()
129}
130
131func (p *Javascript) handleSetter(param string, val any) error {
132 if err := transformInputs(p.in, p.setParamSync); err != nil {

Callers 4

FloatGetterMethod · 0.95
IntGetterMethod · 0.95
StringGetterMethod · 0.95
BoolGetterMethod · 0.95

Calls 4

evaluateMethod · 0.95
LockFunction · 0.92
UnlockFunction · 0.92
transformInputsFunction · 0.85

Tested by

no test coverage detected