frostfs-sdk-go/session
Leonard Lyubich 0bb40b3245 [#261] session: Share common code between Container and Object
`Container` and `Object` types are transmitted in single `session.Token`
message. They differ only by session context.

Share common parts of the message in `commonData` struct. Embed struct
into `Container` and `Object`. Make `ReadFromV2` methods to check
protocol compliance. Make `Unmarshal`/`UmarshalJSON` to check field
format in case of presence only.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2022-06-03 14:46:18 +03:00
..
test [#251] object/address: Refactor and document package functionality 2022-05-27 12:41:35 +03:00
common.go [#261] session: Share common code between Container and Object 2022-06-03 14:46:18 +03:00
container.go [#261] session: Share common code between Container and Object 2022-06-03 14:46:18 +03:00
container_test.go [#261] session: Share common code between Container and Object 2022-06-03 14:46:18 +03:00
doc.go [#197] session: Refactor and document the package 2022-04-27 11:09:29 +03:00
object.go [#261] session: Share common code between Container and Object 2022-06-03 14:46:18 +03:00
object_test.go [#261] session: Share common code between Container and Object 2022-06-03 14:46:18 +03:00