aboutsummaryrefslogtreecommitdiff
path: root/types/serialize.go
diff options
context:
space:
mode:
Diffstat (limited to 'types/serialize.go')
-rw-r--r--types/serialize.go6
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)