frostfs-api-go/session
Evgenii Stratonikov 4a330a5706 [#72] session: Unify unmarshaling code
gopatch:
```
@@
var err, msg, data, t, protojson identifier
var obj expression
@@
+import "git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/rpc/message"
-import protojson "google.golang.org/protobuf/encoding/protojson"

-msg := obj
-if err := protojson.Unmarshal(data, msg); err != nil {
-return err
-}
-return t.FromGRPCMessage(msg)
+return message.UnmarshalJSON(t, data, obj)

@@
var err, msg, data, t, goproto identifier
var obj expression
@@
+import "git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/rpc/message"
-import goproto "google.golang.org/protobuf/proto"

-msg := obj
-if err := goproto.Unmarshal(data, msg); err != nil {
-return err
-}
-return t.FromGRPCMessage(msg)
+return message.Unmarshal(t, data, obj)
```

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
2024-04-20 14:19:19 +03:00
..
grpc [#69] object: Initial EC implementation 2024-03-19 15:23:01 +03:00
test [#54] *: Fix linter warnings 2023-08-11 15:21:27 +03:00
convert.go Rename package name 2023-03-07 13:42:36 +03:00
json.go [#72] session: Unify unmarshaling code 2024-04-20 14:19:19 +03:00
marshal.go [#72] session: Unify unmarshaling code 2024-04-20 14:19:19 +03:00
message_test.go Rename package name 2023-03-07 13:42:36 +03:00
status.go Rename package name 2023-03-07 13:42:36 +03:00
status_test.go Rename package name 2023-03-07 13:42:36 +03:00
string.go Rename package name 2023-03-07 13:42:36 +03:00
types.go [#68] Makefile: Use gofumpt for formatting 2024-03-14 10:31:58 +03:00
util.go [#68] Makefile: Use gofumpt for formatting 2024-03-14 10:31:58 +03:00
xheaders.go [#27] *: Resolve godot linter warnings 2023-05-03 14:15:56 +03:00