From 8c9a8769bdd1d69a5c3b061b8febab9f32896b87 Mon Sep 17 00:00:00 2001 From: Fred Boniface Date: Thu, 2 May 2024 15:18:33 +0100 Subject: [PATCH] Add metadata types --- pkg/database/metadata.go | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 pkg/database/metadata.go diff --git a/pkg/database/metadata.go b/pkg/database/metadata.go new file mode 100644 index 0000000..f9c204c --- /dev/null +++ b/pkg/database/metadata.go @@ -0,0 +1,17 @@ +package database + +import "time" + +type PisMetadata struct { + Type string `json:"type"` + LastUpdate string `json:"lastUpdate"` + LastVersion string `json:"lastVersion"` +} + +type CifMetadata struct { + Type string `json:"type"` + LastSequence int64 `json:"lastSequence"` + LastTimestamp int64 `json:"lastTimestamp"` + LastUpdate time.Time `json:"lastUpdate"` + LastUpdateType string `json:"lastUpdateType"` +}