mirror of
https://github.com/Start9Labs/start-sdk.git
synced 2026-03-26 10:21:55 +00:00
18 lines
436 B
TypeScript
18 lines
436 B
TypeScript
import { Effects } from "../types";
|
|
import { LocalPort } from "./LocalPort";
|
|
import { TorHostname } from "./TorHostname";
|
|
|
|
export class NetworkBuilder {
|
|
static of(effects: Effects) {
|
|
return new NetworkBuilder(effects);
|
|
}
|
|
private constructor(private effects: Effects) {}
|
|
|
|
getTorHostName(id: string) {
|
|
return new TorHostname(this.effects, id);
|
|
}
|
|
getPort(id: string) {
|
|
return new LocalPort(this.effects, id);
|
|
}
|
|
}
|