Turn to federated plugin

This commit is contained in:
2022-04-29 13:58:33 +02:00
parent 623555523a
commit 546f41bf87
68 changed files with 5673 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
import "package:plugin_platform_interface/plugin_platform_interface.dart";
class SrvRecord {
final String target;
final int port;
final int priority;
final int weight;
const SrvRecord(
this.target,
this.port,
this.priority,
this.weight
);
}
abstract class MoxdnsPlatform extends PlatformInterface {
static final Object _token = Object();
MoxdnsPlatform() : super(token: _token);
/// Perform the SRV query for [domain]. Use DNSSEC if [dnssec] is true.
Future<List<SrvRecord>> srvQuery(String domain, bool dnssec);
}