aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Shares/Types
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2022-11-20 12:04:25 -0600
committerGitHub <noreply@github.com>2022-11-20 12:04:25 -0600
commit06519212afe8276f9b3b725ef86e8e9db856bee8 (patch)
tree008c87f53bd47427fa3ac3902154bec8abb46c88 /src/slskd/Shares/Types
parent1ea40a325479d543714910a2848fcba0249f3724 (diff)
parent367950d7d8425b26a43dbf4083e56aa508f071af (diff)
downloadslskd-06519212afe8276f9b3b725ef86e8e9db856bee8.tar.gz
Merge pull request #760 from slskd/config-scan
Detect change in share configuration, 'dirty' scan, or any other reason shares are in a known bad or questionable state at startup and force scan if needed
Diffstat (limited to 'src/slskd/Shares/Types')
-rw-r--r--src/slskd/Shares/Types/Scan.cs27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/slskd/Shares/Types/Scan.cs b/src/slskd/Shares/Types/Scan.cs
new file mode 100644
index 00000000..86af6a8f
--- /dev/null
+++ b/src/slskd/Shares/Types/Scan.cs
@@ -0,0 +1,27 @@
+// <copyright file="Scan.cs" company="slskd Team">
+// Copyright (c) slskd Team. All rights reserved.
+//
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU Affero General Public License as published
+// by the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU Affero General Public License for more details.
+//
+// You should have received a copy of the GNU Affero General Public License
+// along with this program. If not, see https://www.gnu.org/licenses/.
+// </copyright>
+
+namespace slskd.Shares
+{
+ public record Scan
+ {
+ public long StartedAt { get; init; }
+ public string OptionsJson { get; init; }
+ public long? EndedAt { get; init; }
+ public bool Suspect { get; init; }
+ }
+}