make service interfaces and hosts one to one

This commit is contained in:
Matt Hill
2024-02-19 12:40:52 -07:00
parent eae75c13bb
commit d7bc7a2d38
15 changed files with 222 additions and 311 deletions

View File

@@ -1,4 +1,4 @@
import { NetworkInterfaceBuilder } from "../interfaces/NetworkInterfaceBuilder"
import { ServiceInterfaceBuilder } from "../interfaces/ServiceInterfaceBuilder"
import { Effects } from "../types"
import { createUtils } from "../util"
@@ -8,7 +8,7 @@ describe("host", () => {
const utils = createUtils<never, never>(effects)
const foo = utils.host.multi("foo")
const fooOrigin = await foo.bindPort(80, { protocol: "http" as const })
const fooInterface = new NetworkInterfaceBuilder({
const fooInterface = new ServiceInterfaceBuilder({
effects,
name: "Foo",
id: "foo",

View File

@@ -1,4 +1,4 @@
import { getHostname } from "../util/getNetworkInterface"
import { getHostname } from "../util/getServiceInterface"
describe("getHostname ", () => {
const inputToExpected = [

View File

@@ -1,4 +1,4 @@
import { getHostname } from "../util/getNetworkInterface"
import { getHostname } from "../util/getServiceInterface"
import { splitCommand } from "../util/splitCommand"
describe("splitCommand ", () => {