From ebaf78c8faab21031b50ba546d25052b84d7d482 Mon Sep 17 00:00:00 2001 From: Airat Arifullin Date: Mon, 5 Aug 2024 20:52:47 +0300 Subject: [PATCH] [#100] session: Introduce `ObjectPatch` verb Signed-off-by: Airat Arifullin --- session/convert.go | 4 ++++ session/grpc/types.pb.go | Bin 57088 -> 57288 bytes session/types.go | 1 + 3 files changed, 5 insertions(+) diff --git a/session/convert.go b/session/convert.go index bbfe070..4197935 100644 --- a/session/convert.go +++ b/session/convert.go @@ -641,6 +641,8 @@ func ObjectSessionVerbToGRPCField(v ObjectSessionVerb) session.ObjectSessionCont return session.ObjectSessionContext_RANGE case ObjectVerbRangeHash: return session.ObjectSessionContext_RANGEHASH + case ObjectVerbPatch: + return session.ObjectSessionContext_PATCH default: return session.ObjectSessionContext_VERB_UNSPECIFIED } @@ -662,6 +664,8 @@ func ObjectSessionVerbFromGRPCField(v session.ObjectSessionContext_Verb) ObjectS return ObjectVerbRange case session.ObjectSessionContext_RANGEHASH: return ObjectVerbRangeHash + case session.ObjectSessionContext_PATCH: + return ObjectVerbPatch default: return ObjectVerbUnknown } diff --git a/session/grpc/types.pb.go b/session/grpc/types.pb.go index 924df45c0e42847aa16c1f979a265f9cd695eb45..9f517436ffd99ca94731c6fa95afdcf5e1b2691a 100644 GIT binary patch delta 2466 zcmah~ZA_Er8V=YNT5Bn_Uu$W30oQH@Mn5U&ro34k&Mi^nvMg*FBExOxkGP%0&2j)0 zDkv801y(+UB4R60DBmPz$db*OWp28!EHODVGuyH)5%g;_;m1^v9F8 z&wIc3bKlo}UDwmJwC38CHL2|i?2{SfyQ=?O^9BT&Am1gv@bq@L*IU;-C6uCSofZ2O zpDUH6n}mG!YNj|to@P|?=k58Mga>}5Gw#gEgXv|ineX0RRHO&|GyP4WbhI3OMB^${ zDP8aQ+=YVc9lsC4QBzte?8kC(I%tN_ph#CKvC?2cBb2z^{3QFkbWFrzSB|WfK1FV` zh~=;yxt%%K8qB~BoWPZ!fyI3l^c1_RSz?#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