Add memory limit option

This commit is contained in:
problematicconsumer
2023-10-26 15:16:25 +03:30
parent f85163476d
commit ab4e6f8b77
14 changed files with 90 additions and 27 deletions

View File

@@ -18,11 +18,17 @@ abstract interface class SingboxFacade {
ConfigOptions options,
);
TaskEither<CoreServiceFailure, Unit> start(String fileName);
TaskEither<CoreServiceFailure, Unit> start(
String fileName,
bool disableMemoryLimit,
);
TaskEither<CoreServiceFailure, Unit> stop();
TaskEither<CoreServiceFailure, Unit> restart(String fileName);
TaskEither<CoreServiceFailure, Unit> restart(
String fileName,
bool disableMemoryLimit,
);
Stream<Either<CoreServiceFailure, List<OutboundGroup>>> watchOutbounds();