mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-04 23:57:54 +00:00
22 lines
514 B
Dart
22 lines
514 B
Dart
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';
|
|
|
|
abstract class LibgopeedBoot {
|
|
static const unixSocketPath = 'gopeed.sock';
|
|
|
|
static LibgopeedBoot? _instance;
|
|
|
|
static LibgopeedBoot get instance {
|
|
_instance ??= LibgopeedBoot();
|
|
return _instance!;
|
|
}
|
|
|
|
factory LibgopeedBoot() => create();
|
|
|
|
Future<int> start(StartConfig cfg);
|
|
|
|
Future<void> stop();
|
|
}
|