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

Method Decode

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

Decode attempts to deserialize the provided data using either the innate typing of the scheme or the default kind, group, and version provided. It returns a decoded object as well as the kind, group, and version from the serialized data, or an error. If into is non-nil, it will be used as the target

(data []byte, into interface{})

Source from the content-addressed store, hash-verified

37 // provided, they are applied to the data by default. If no defaults or partial defaults are provided, the
38 // type of the into may be used to guide conversion decisions.
39 Decode(data []byte, into interface{}) error
40}
41
42// Serializer is the core interface for transforming objects into a serialized format and back.

Callers 8

recvRunnerInfoLoopMethod · 0.95
makeResponseFunction · 0.95
LoadMethod · 0.95
UnmarshalFunction · 0.95
TestStatisticsInfoFunction · 0.65
IntoMethod · 0.65
errorFromBodyFunction · 0.65

Implementers 2

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

Calls

no outgoing calls

Tested by 1

TestStatisticsInfoFunction · 0.52