MCPcopy Create free account
hub / github.com/baidu/EasyFaaS / Encode

Method Encode

pkg/rest/serializer.go:27–27  ·  view source on GitHub ↗

Encode writes an object to a stream. Implementations may return errors if the versions are incompatible, or if no conversion is defined.

(obj interface{}, w io.Writer)

Source from the content-addressed store, hash-verified

25 // Encode writes an object to a stream. Implementations may return errors if the versions are
26 // incompatible, or if no conversion is defined.
27 Encode(obj interface{}, w io.Writer) error
28}
29
30// Decoder attempt to load an object from data.

Callers 9

timeoutMethod · 0.95
SaveMethod · 0.95
InvokeMethod · 0.65
TestInvokeHandlerFunction · 0.65
buildRequestResponseFunction · 0.65
TestStatisticsInfoFunction · 0.65
initRuntimeFunction · 0.65
URLMethod · 0.65

Implementers 2

StatisticInfopkg/controller/rtctrl/statistics.go
Serializerpkg/rest/serializer/json/json.go

Calls

no outgoing calls

Tested by 4

TestInvokeHandlerFunction · 0.52
buildRequestResponseFunction · 0.52
TestStatisticsInfoFunction · 0.52
initRuntimeFunction · 0.52