Skip to content

Commit c7180e3

Browse files
save
1 parent 4168146 commit c7180e3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+678
-1311
lines changed

docs/modules/Callbacks.ts.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Create a callback client for the docker engine
3131
export declare const callbackClient: <E>(
3232
layer: Layer.Layer<
3333
Layer.Layer.Success<DockerEngine.DockerLayer>,
34-
E | Layer.Layer.Error<DockerEngine.DockerLayer>,
34+
Layer.Layer.Error<DockerEngine.DockerLayer> | E,
3535
Layer.Layer.Context<DockerEngine.DockerLayer>
3636
>
3737
) => Promise<{

docs/modules/MobyConvey.ts.md

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Added in v1.0.0
1616

1717
- [Conveyance Sinks](#conveyance-sinks)
1818
- [followProgressInConsole](#followprogressinconsole)
19+
- [followProgressSink](#followprogresssink)
1920
- [waitForProgressToComplete](#waitforprogresstocomplete)
2021

2122
---
@@ -24,24 +25,40 @@ Added in v1.0.0
2425

2526
## followProgressInConsole
2627

28+
Tracks the progress stream in the console and returns the result.
29+
2730
**Signature**
2831

2932
```ts
3033
export declare const followProgressInConsole: <E1, R1>(
31-
stream: Stream<JSONMessage, E1, R1>
32-
) => Effect<Chunk<JSONMessage>, E1, Exclude<R1, Scope>>
34+
stream: Stream.Stream<JSONMessage, E1, R1>
35+
) => Effect.Effect<Chunk.Chunk<JSONMessage>, E1, Exclude<R1, Scope.Scope>>
36+
```
37+
38+
Added in v1.0.0
39+
40+
## followProgressSink
41+
42+
Consumes the progress stream and logs it to the console.
43+
44+
**Signature**
45+
46+
```ts
47+
export declare const followProgressSink: Sink.Sink<void, JSONMessage, never, never, never>
3348
```
3449
3550
Added in v1.0.0
3651
3752
## waitForProgressToComplete
3853
54+
Waits for the progress stream to complete and returns the result.
55+
3956
**Signature**
4057
4158
```ts
4259
export declare const waitForProgressToComplete: <E1, R1>(
43-
stream: Stream<JSONMessage, E1, R1>
44-
) => Effect<Chunk<JSONMessage>, E1, Exclude<R1, Scope>>
60+
stream: Stream.Stream<JSONMessage, E1, R1>
61+
) => Effect.Effect<Chunk.Chunk<JSONMessage>, E1, Exclude<R1, Scope.Scope>>
4562
```
4663
4764
Added in v1.0.0

docs/modules/MobyEngine.ts.md

Lines changed: 0 additions & 137 deletions
This file was deleted.

docs/modules/MobyPlatforms.ts.md

Lines changed: 64 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: MobyPlatforms.ts
3-
nav_order: 11
3+
nav_order: 10
44
parent: Modules
55
---
66

@@ -14,16 +14,41 @@ Added in v1.0.0
1414

1515
<h2 class="text-delta">Table of contents</h2>
1616

17+
- [Browser](#browser)
18+
- [makeWebHttpClientLayer](#makewebhttpclientlayer)
1719
- [Connection](#connection)
1820
- [makeAgnosticHttpClientLayer](#makeagnostichttpclientlayer)
1921
- [makeBunHttpClientLayer](#makebunhttpclientlayer)
22+
- [Deno](#deno)
2023
- [makeDenoHttpClientLayer](#makedenohttpclientlayer)
24+
- [Fetch](#fetch)
25+
- [makeFetchHttpClientLayer](#makefetchhttpclientlayer)
26+
- [NodeJS](#nodejs)
2127
- [makeNodeHttpClientLayer](#makenodehttpclientlayer)
28+
- [Undici](#undici)
2229
- [makeUndiciHttpClientLayer](#makeundicihttpclientlayer)
23-
- [makeWebHttpClientLayer](#makewebhttpclientlayer)
2430

2531
---
2632

33+
# Browser
34+
35+
## makeWebHttpClientLayer
36+
37+
Given the moby connection options, it will construct a layer that provides a
38+
http client that you could use to connect to your moby instance.
39+
40+
This function will dynamically import the `@effect/platform-browser` package.
41+
42+
**Signature**
43+
44+
```ts
45+
export declare const makeWebHttpClientLayer: (
46+
connectionOptions: MobyConnection.HttpConnectionOptionsTagged | MobyConnection.HttpsConnectionOptionsTagged
47+
) => Layer.Layer<HttpClient.HttpClient | Socket.WebSocketConstructor, never, never>
48+
```
49+
50+
Added in v1.0.0
51+
2752
# Connection
2853
2954
## makeAgnosticHttpClientLayer
@@ -35,7 +60,7 @@ http client that you could use to connect to your moby instance.
3560
3661
```ts
3762
export declare const makeAgnosticHttpClientLayer: (
38-
connectionOptions: MobyConnectionOptions
63+
connectionOptions: MobyConnection.MobyConnectionOptions
3964
) => Layer.Layer<HttpClient.HttpClient, never, HttpClient.HttpClient>
4065
```
4166
@@ -47,72 +72,96 @@ Given the moby connection options, it will construct a layer that provides a
4772
http client that you could use to connect to your moby instance. This is no
4873
different than the Node implementation currently.
4974
75+
This function will dynamically import the `@effect/platform-node` package.
76+
5077
**Signature**
5178
5279
```ts
5380
export declare const makeBunHttpClientLayer: (
54-
connectionOptions: MobyConnectionOptions
81+
connectionOptions: MobyConnection.MobyConnectionOptions
5582
) => Layer.Layer<HttpClient.HttpClient | Socket.WebSocketConstructor, never, never>
5683
```
5784
5885
Added in v1.0.0
5986
87+
# Deno
88+
6089
## makeDenoHttpClientLayer
6190
6291
Given the moby connection options, it will construct a layer that provides a
6392
http client that you could use to connect to your moby instance. This is no
6493
different than the Node implementation currently.
6594
95+
This function will dynamically import the `@effect/platform-node` package.
96+
97+
FIXME: https://github.com/denoland/deno/issues/21436?
98+
99+
Will fallback to using undici for now because that seems to work
100+
66101
**Signature**
67102
68103
```ts
69104
export declare const makeDenoHttpClientLayer: (
70-
connectionOptions: MobyConnectionOptions
105+
connectionOptions: MobyConnection.MobyConnectionOptions
71106
) => Layer.Layer<HttpClient.HttpClient | Socket.WebSocketConstructor, never, never>
72107
```
73108
74109
Added in v1.0.0
75110
76-
## makeNodeHttpClientLayer
111+
# Fetch
112+
113+
## makeFetchHttpClientLayer
77114
78115
Given the moby connection options, it will construct a layer that provides a
79-
http client that you could use to connect to your moby instance.
116+
http client that you could use to connect to your moby instance. By only
117+
supporting http and https connection options, this function does not rely on
118+
any specific platform package and uses the `@effect/platform/FetchHttpClient`
119+
as its base http layer.
80120
81121
**Signature**
82122
83123
```ts
84-
export declare const makeNodeHttpClientLayer: (
85-
connectionOptions: MobyConnectionOptions
124+
export declare const makeFetchHttpClientLayer: (
125+
connectionOptions: MobyConnection.HttpConnectionOptionsTagged | MobyConnection.HttpsConnectionOptionsTagged
86126
) => Layer.Layer<HttpClient.HttpClient | Socket.WebSocketConstructor, never, never>
87127
```
88128
89129
Added in v1.0.0
90130
91-
## makeUndiciHttpClientLayer
131+
# NodeJS
132+
133+
## makeNodeHttpClientLayer
92134
93135
Given the moby connection options, it will construct a layer that provides a
94136
http client that you could use to connect to your moby instance.
95137
138+
This function will dynamically import the `@effect/platform-node` package.
139+
96140
**Signature**
97141
98142
```ts
99-
export declare const makeUndiciHttpClientLayer: (
100-
connectionOptions: MobyConnectionOptions
143+
export declare const makeNodeHttpClientLayer: (
144+
connectionOptions: MobyConnection.MobyConnectionOptions
101145
) => Layer.Layer<HttpClient.HttpClient | Socket.WebSocketConstructor, never, never>
102146
```
103147
104148
Added in v1.0.0
105149
106-
## makeWebHttpClientLayer
150+
# Undici
151+
152+
## makeUndiciHttpClientLayer
107153
108154
Given the moby connection options, it will construct a layer that provides a
109155
http client that you could use to connect to your moby instance.
110156
157+
This function will dynamically import the `@effect/platform-node` and
158+
`undici` packages.
159+
111160
**Signature**
112161
113162
```ts
114-
export declare const makeWebHttpClientLayer: (
115-
connectionOptions: HttpConnectionOptionsTagged | HttpsConnectionOptionsTagged
163+
export declare const makeUndiciHttpClientLayer: (
164+
connectionOptions: MobyConnection.MobyConnectionOptions
116165
) => Layer.Layer<HttpClient.HttpClient | Socket.WebSocketConstructor, never, never>
117166
```
118167

docs/modules/MobySchemas.ts.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: MobySchemas.ts
3-
nav_order: 12
3+
nav_order: 11
44
parent: Modules
55
---
66

0 commit comments

Comments
 (0)