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

Method decode

reactions.go:34–44  ·  view source on GitHub ↗
(resp []byte, err error)

Source from the content-addressed store, hash-verified

32}
33
34func (c *ReactionsClient) decode(resp []byte, err error) (*ReactionResponse, error) {
35 if err != nil {
36 return nil, err
37 }
38
39 var result ReactionResponse
40 if err := json.Unmarshal(resp, &result); err != nil {
41 return nil, err
42 }
43 return &result, nil
44}
45
46// Update updates the reaction's data and/or target feeds.
47func (c *ReactionsClient) Update(ctx context.Context, id string, data map[string]any, targetFeeds []string) (*ReactionResponse, error) {

Callers 4

addReactionMethod · 0.95
UpdateMethod · 0.95
GetMethod · 0.95
DeleteMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected