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

Method StringGetter

plugin/socket.go:151–164  ·  view source on GitHub ↗

StringGetter sends string request

()

Source from the content-addressed store, hash-verified

149
150// StringGetter sends string request
151func (p *Socket) StringGetter() (func() (string, error), error) {
152 return func() (string, error) {
153 val, err := p.val.Get()
154 if err != nil {
155 return "", err
156 }
157
158 if err := knownErrors(val); err != nil {
159 return "", err
160 }
161
162 return string(val), nil
163 }, nil
164}

Callers

nothing calls this directly

Calls 2

knownErrorsFunction · 0.85
GetMethod · 0.65

Tested by

no test coverage detected