MCPcopy Create free account
hub / github.com/GetStream/stream-go2 / decode

Function decode

utils.go:82–91  ·  view source on GitHub ↗
(resp []byte, err error)

Source from the content-addressed store, hash-verified

80}
81
82func decode(resp []byte, err error) (*BaseResponse, error) {
83 if err != nil {
84 return nil, err
85 }
86 var result BaseResponse
87 if err := json.Unmarshal(resp, &result); err != nil {
88 return nil, err
89 }
90 return &result, nil
91}
92
93// set environment values and return a func to reset old values
94func resetEnv(values map[string]string) (func(), error) {

Callers 9

UpsertMethod · 0.85
DeleteManyMethod · 0.85
DeleteMethod · 0.85
DeleteMethod · 0.85
TrackEngagementMethod · 0.85
TrackImpressionMethod · 0.85
UpdateActivitiesMethod · 0.85
followMethod · 0.85
unfollowMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected