MCPcopy Create free account
hub / github.com/evcc-io/evcc / set

Method set

plugin/http.go:252–266  ·  view source on GitHub ↗
(param string, val any)

Source from the content-addressed store, hash-verified

250}
251
252func (p *HTTP) set(param string, val any) error {
253 url, err := setFormattedValue(p.url, param, val)
254 if err != nil {
255 return err
256 }
257
258 body, err := setFormattedValue(p.body, param, val)
259 if err != nil {
260 return err
261 }
262
263 _, err = p.request(url, body)
264
265 return err
266}
267
268var _ IntSetter = (*HTTP)(nil)
269

Callers 10

IntSetterMethod · 0.95
FloatSetterMethod · 0.95
StringSetterMethod · 0.95
BoolSetterMethod · 0.95
validateTranslationsFunction · 0.45
registerModalFunction · 0.45
codemirror.tsFile · 0.45
circuitTreeFunction · 0.45
ocppMiddlewareFunction · 0.45
callMethod · 0.45

Calls 2

requestMethod · 0.95
setFormattedValueFunction · 0.85

Tested by

no test coverage detected