diff options
author | Rasmus Dahlberg <rasmus.dahlberg@kau.se> | 2021-02-23 12:59:17 +0100 |
---|---|---|
committer | Rasmus Dahlberg <rasmus.dahlberg@kau.se> | 2021-02-23 12:59:17 +0100 |
commit | c9b4b43654f0ff26207cc63449f13298cd3c56e8 (patch) | |
tree | 1f96d1a06a1fb5e48cf7afb24cd40fc935e91e64 /types/serialize.go | |
parent | 15102a44b646f300ac8b35ce18fe3d1fded7ba1d (diff) |
added get-entries request type
Diffstat (limited to 'types/serialize.go')
-rw-r--r-- | types/serialize.go | 6 |
1 files changed, 6 insertions, 0 deletions
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) |