feat: support custom tracker url (#59)

This commit is contained in:
Li Wei authored and GitHub committed 2022-12-12 15:58:11 +08:00
1 parent 9ef3405e43
commit 691c2f496e
71 files changed
+2209 -891

No files matched your search

+2 -15
View File
@@ -1,19 +1,8 @@
import 'common/start_config.dart';
import "libgopeed_boot_stub.dart"
if (dart.library.html) 'entry/libgopeed_boot_browser.dart'
if (dart.library.io) 'entry/libgopeed_boot_native.dart';
class LibgopeedConfig {
late String network;
late String address;
late int refreshInterval;
LibgopeedConfig({
this.network = "tcp",
this.address = "127.0.0.1:0",
this.refreshInterval = 500,
});
}
abstract class LibgopeedBoot {
static const unixSocketPath = 'gopeed.sock';
@@ -26,9 +15,7 @@ abstract class LibgopeedBoot {
factory LibgopeedBoot() => create();
Future<void> start();
Future<int> start(StartConfig cfg);
Future<void> stop();
LibgopeedConfig get config;
}