mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-04 15:49:49 +00:00
20 lines
466 B
Dart
20 lines
466 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 LibgopeedBoot? _instance;
|
|
|
|
static LibgopeedBoot get instance {
|
|
_instance ??= LibgopeedBoot();
|
|
return _instance!;
|
|
}
|
|
|
|
factory LibgopeedBoot() => create();
|
|
|
|
Future<int> start(StartConfig cfg);
|
|
|
|
Future<void> stop();
|
|
}
|