Skip to content

Commit 039960f

Browse files
committed
add TTL field to backups.Backup
1 parent b4f90c5 commit 039960f

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
APP_NAME=swis-api
66
APP_ROOT=/opt/${APP_NAME}
7-
APP_VERSION=5.17.6
7+
APP_VERSION=5.17.7
88

99

1010
#

cmd/swis-api/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// @title swis-api (swapi) v5
2-
// @version 5.17.6
2+
// @version 5.17.7
33
// @description sakalWeb Information System v5 RESTful API documentation
44
// @termsOfService http://swagger.io/terms/
55

pkg/backups/models.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ type Backup struct {
1919
// Size of the gzip/tar archive in bytes.
2020
Size int `json:"backup_size"`
2121

22+
// TimeToLive aka the tolerable age of last backup in hours.
23+
TTL float64 `json:"ttl"`
24+
2225
// Name of the compressed backup file.
2326
FileName string `json:"file_name"`
2427

0 commit comments

Comments
 (0)