etunnel library
etunnel SDK for Dart: expose a local service through an etunnel server.
Embed: final t = await Etunnel.connect(...) (see README "Embed");
CLI: dart run etunnel.dart 3000 (root wrapper) or dart run etunnel.
Classes
- Etunnel
- LoginCredentials
- Route
- Local route (PROTOCOL.md §2): path prefix -> local addr ("host:port").
Enums
- EdgeState
- What the last edge probe established about the public hostname.
Constants
- defaultEdgeProbeInterval → const Duration
- edgeHeader → const String
- edgeHealthPath → const String
- edgeLostThreshold → const int
- edgeProbeFailLogEvery → const Duration
- edgeProbeFirstDelay → const Duration
- edgeProbeTimeout → const Duration
-
HOP
→ const Set<
String> - MAXP → const int
- maxStreamBody → const int
- maxStreams → const int
- maxWsMsg → const int
- pingDeadline → const Duration
- pingInterval → const Duration
- version → const String
- SDK version reported in hello.version (stamped by scripts/bump-release.py).
Functions
-
defaultOpenBrowser(
String url) → Future< void> -
etunnelLogin(
String server, {BrowserOpener? openBrowser, Duration timeout = const Duration(minutes: 10)}) → Future< LoginCredentials> -
frame(
int kind, int id, List< int> payload) → Uint8List -
run(
List< String> args) → Future<void> -
CLI entry (
dart run etunnel.dart 3000,bin/etunnel.dart). The library lives here soimport 'package:etunnel/etunnel.dart'resolves on pub.dev.
Typedefs
-
BrowserOpener
= Future<
void> Function(String url)