From c9b4b43654f0ff26207cc63449f13298cd3c56e8 Mon Sep 17 00:00:00 2001 From: Rasmus Dahlberg Date: Tue, 23 Feb 2021 12:59:17 +0100 Subject: added get-entries request type --- types/serialize.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'types/serialize.go') diff --git a/types/serialize.go b/types/serialize.go index af0a1ed..fd93336 100644 --- a/types/serialize.go +++ b/types/serialize.go @@ -22,6 +22,12 @@ type GetConsistencyProofV1 struct { Second uint64 } +// GetEntriesV1 is a serializable get-entries request +type GetEntriesV1 struct { + Start uint64 + End uint64 +} + // Marshal marshals a TLS-encodable structure func Marshal(item interface{}) ([]byte, error) { serialized, err := tls.Marshal(item) -- cgit v1.2.3