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

Method Encode

pkg/controller/rtctrl/statistics.go:38–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

36}
37
38func (si *StatisticInfo) Encode() string {
39 data, _ := json.Marshal(si)
40 return base64.StdEncoding.EncodeToString(data)
41}
42
43func (si *StatisticInfo) Decode(str string) error {
44 data, err := base64.StdEncoding.DecodeString(str)

Callers

nothing calls this directly

Calls 1

MarshalFunction · 0.92

Tested by

no test coverage detected