aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Options.cs
diff options
context:
space:
mode:
authorJP Dillingham <jpdillingham@gmail.com>2021-01-22 16:48:26 -0600
committerJP Dillingham <jpdillingham@gmail.com>2021-01-22 16:48:26 -0600
commitfc9a1aacfb9c4e005fd482ba37394840865e9e61 (patch)
treecc6101ad7014f1c504fea1e5118e6b47435bf51a /src/slskd/Options.cs
parent0210ab449f7546a90982a8cb28403f3d6af02230 (diff)
downloadslskd-fc9a1aacfb9c4e005fd482ba37394840865e9e61.tar.gz
wip
Diffstat (limited to 'src/slskd/Options.cs')
-rw-r--r--src/slskd/Options.cs60
1 files changed, 0 insertions, 60 deletions
diff --git a/src/slskd/Options.cs b/src/slskd/Options.cs
deleted file mode 100644
index ef2759f5..00000000
--- a/src/slskd/Options.cs
+++ /dev/null
@@ -1,60 +0,0 @@
-namespace slskd
-{
- using System.Collections.Generic;
- using System.Linq;
-
- public class RuntimeOptions
- {
- public class Soulseek
- {
- public string Username { get; set; } = Program.Username;
- public string Password { get; set; } = Program.Password;
- public int ListenPort { get; set; } = 50000;
- public DistributedNetworkOptions DistributedNetwork { get; set; }
- public ConnectionOptions Connection { get; set; }
-
- public class DistributedNetworkOptions
- {
- public bool Enabled { get; set; } = true;
- public int ChildLimit { get; set; } = 10;
- }
-
- public class ConnectionOptions
- {
- public TimeoutOptions Timeout { get; set; }
- public BufferOptions Buffer { get; set; }
-
- public class TimeoutOptions
- {
- public int Connect { get; set; } = 5000;
- public int Inactivity { get; set; } = 15000;
- }
-
- public class BufferOptions
- {
- public int Read { get; set; } = 16384;
- public int Write { get; set; } = 16384;
- }
- }
- }
-
- public class Authentication
- {
- public IEnumerable<User> Users { get; set; }
- public IEnumerable<ApiKey> ApiKeys { get; set; }
-
- public class User
- {
- public string Name { get; set; }
- public string Password { get; set; }
- public Role Role { get; set; }
- }
-
- public class ApiKey
- {
- public string Key { get; set; }
- public Role Role { get; set; }
- }
- }
- }
-}