From 0ae952fcc62b1a72a4f4320f94cb61157ffb9377 Mon Sep 17 00:00:00 2001 From: Alex Vanin Date: Wed, 12 Aug 2020 16:18:33 +0300 Subject: [PATCH] Add stable marshal of meta & verify headers It uses unstable implementation for now. Signed-off-by: Alex Vanin --- service/v2/marshal.go | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 service/v2/marshal.go diff --git a/service/v2/marshal.go b/service/v2/marshal.go new file mode 100644 index 0000000..54b7d10 --- /dev/null +++ b/service/v2/marshal.go @@ -0,0 +1,21 @@ +package v2 + +func (m *RequestMetaHeader) StableMarshal(buf []byte) ([]byte, error) { + // fixme: implement stable + return m.Marshal() +} + +func (m *RequestMetaHeader) StableSize() int { + // fixme: implement stable + return m.Size() +} + +func (m *RequestVerificationHeader) StableMarshal(buf []byte) ([]byte, error) { + // fixme: implement stable + return m.Marshal() +} + +func (m *RequestVerificationHeader) StableSize() int { + // fixme: implement stable + return m.Size() +}