Skip to content

Commit

Permalink
Add readBatchTimeout to ReaderConfig (#188)
Browse files Browse the repository at this point in the history
* Add latest commit hash of kafka-go for testing ReadBatchTimeout
* Make ReadBatchTimeout configurable
* Update API docs
* Run generate-docs and prettier again to update the docs
* Add prettier to devDependencies to format the JS API docs after generating them
  • Loading branch information
mostafa authored Jan 12, 2023
1 parent 63b5c93 commit 59cd729
Show file tree
Hide file tree
Showing 18 changed files with 82 additions and 78 deletions.
10 changes: 5 additions & 5 deletions api-docs/docs/classes/Connection.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ connection.close();

#### Defined in

[index.d.ts:354](https://github.com/mostafa/xk6-kafka/blob/main/api-docs/index.d.ts#L354)
[index.d.ts:355](https://github.com/mostafa/xk6-kafka/blob/main/api-docs/index.d.ts#L355)

## Methods

Expand All @@ -64,7 +64,7 @@ connection.close();

#### Defined in

[index.d.ts:380](https://github.com/mostafa/xk6-kafka/blob/main/api-docs/index.d.ts#L380)
[index.d.ts:381](https://github.com/mostafa/xk6-kafka/blob/main/api-docs/index.d.ts#L381)

---

Expand All @@ -89,7 +89,7 @@ Create a new topic.

#### Defined in

[index.d.ts:361](https://github.com/mostafa/xk6-kafka/blob/main/api-docs/index.d.ts#L361)
[index.d.ts:362](https://github.com/mostafa/xk6-kafka/blob/main/api-docs/index.d.ts#L362)

---

Expand All @@ -114,7 +114,7 @@ Delete a topic.

#### Defined in

[index.d.ts:368](https://github.com/mostafa/xk6-kafka/blob/main/api-docs/index.d.ts#L368)
[index.d.ts:369](https://github.com/mostafa/xk6-kafka/blob/main/api-docs/index.d.ts#L369)

---

Expand All @@ -133,4 +133,4 @@ List topics.

#### Defined in

[index.d.ts:374](https://github.com/mostafa/xk6-kafka/blob/main/api-docs/index.d.ts#L374)
[index.d.ts:375](https://github.com/mostafa/xk6-kafka/blob/main/api-docs/index.d.ts#L375)
6 changes: 3 additions & 3 deletions api-docs/docs/classes/Reader.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ reader.close();

#### Defined in

[index.d.ts:313](https://github.com/mostafa/xk6-kafka/blob/main/api-docs/index.d.ts#L313)
[index.d.ts:314](https://github.com/mostafa/xk6-kafka/blob/main/api-docs/index.d.ts#L314)

## Methods

Expand All @@ -63,7 +63,7 @@ reader.close();

#### Defined in

[index.d.ts:326](https://github.com/mostafa/xk6-kafka/blob/main/api-docs/index.d.ts#L326)
[index.d.ts:327](https://github.com/mostafa/xk6-kafka/blob/main/api-docs/index.d.ts#L327)

---

Expand All @@ -88,4 +88,4 @@ Read messages from Kafka.

#### Defined in

[index.d.ts:320](https://github.com/mostafa/xk6-kafka/blob/main/api-docs/index.d.ts#L320)
[index.d.ts:321](https://github.com/mostafa/xk6-kafka/blob/main/api-docs/index.d.ts#L321)
12 changes: 6 additions & 6 deletions api-docs/docs/classes/SchemaRegistry.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ writer.produce({

#### Defined in

[index.d.ts:442](https://github.com/mostafa/xk6-kafka/blob/main/api-docs/index.d.ts#L442)
[index.d.ts:443](https://github.com/mostafa/xk6-kafka/blob/main/api-docs/index.d.ts#L443)

## Methods

Expand All @@ -104,7 +104,7 @@ Create or update a schema on Schema Registry.

#### Defined in

[index.d.ts:456](https://github.com/mostafa/xk6-kafka/blob/main/api-docs/index.d.ts#L456)
[index.d.ts:457](https://github.com/mostafa/xk6-kafka/blob/main/api-docs/index.d.ts#L457)

---

Expand All @@ -129,7 +129,7 @@ Deserializes the given data and schema into its original form.

#### Defined in

[index.d.ts:477](https://github.com/mostafa/xk6-kafka/blob/main/api-docs/index.d.ts#L477)
[index.d.ts:478](https://github.com/mostafa/xk6-kafka/blob/main/api-docs/index.d.ts#L478)

---

Expand All @@ -154,7 +154,7 @@ Get a schema from Schema Registry by version and subject.

#### Defined in

[index.d.ts:449](https://github.com/mostafa/xk6-kafka/blob/main/api-docs/index.d.ts#L449)
[index.d.ts:450](https://github.com/mostafa/xk6-kafka/blob/main/api-docs/index.d.ts#L450)

---

Expand All @@ -179,7 +179,7 @@ Returns the subject name for the given SubjectNameConfig.

#### Defined in

[index.d.ts:463](https://github.com/mostafa/xk6-kafka/blob/main/api-docs/index.d.ts#L463)
[index.d.ts:464](https://github.com/mostafa/xk6-kafka/blob/main/api-docs/index.d.ts#L464)

---

Expand All @@ -204,4 +204,4 @@ Serializes the given data and schema into a byte array.

#### Defined in

[index.d.ts:470](https://github.com/mostafa/xk6-kafka/blob/main/api-docs/index.d.ts#L470)
[index.d.ts:471](https://github.com/mostafa/xk6-kafka/blob/main/api-docs/index.d.ts#L471)
6 changes: 3 additions & 3 deletions api-docs/docs/classes/Writer.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ writer.close();

#### Defined in

[index.d.ts:271](https://github.com/mostafa/xk6-kafka/blob/main/api-docs/index.d.ts#L271)
[index.d.ts:272](https://github.com/mostafa/xk6-kafka/blob/main/api-docs/index.d.ts#L272)

## Methods

Expand All @@ -71,7 +71,7 @@ writer.close();

#### Defined in

[index.d.ts:284](https://github.com/mostafa/xk6-kafka/blob/main/api-docs/index.d.ts#L284)
[index.d.ts:285](https://github.com/mostafa/xk6-kafka/blob/main/api-docs/index.d.ts#L285)

---

Expand All @@ -96,4 +96,4 @@ Write messages to Kafka.

#### Defined in

[index.d.ts:278](https://github.com/mostafa/xk6-kafka/blob/main/api-docs/index.d.ts#L278)
[index.d.ts:279](https://github.com/mostafa/xk6-kafka/blob/main/api-docs/index.d.ts#L279)
4 changes: 2 additions & 2 deletions api-docs/docs/interfaces/ConfigEntry.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

#### Defined in

[index.d.ts:204](https://github.com/mostafa/xk6-kafka/blob/main/api-docs/index.d.ts#L204)
[index.d.ts:205](https://github.com/mostafa/xk6-kafka/blob/main/api-docs/index.d.ts#L205)

---

Expand All @@ -25,4 +25,4 @@

#### Defined in

[index.d.ts:205](https://github.com/mostafa/xk6-kafka/blob/main/api-docs/index.d.ts#L205)
[index.d.ts:206](https://github.com/mostafa/xk6-kafka/blob/main/api-docs/index.d.ts#L206)
6 changes: 3 additions & 3 deletions api-docs/docs/interfaces/ConnectionConfig.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

#### Defined in

[index.d.ts:191](https://github.com/mostafa/xk6-kafka/blob/main/api-docs/index.d.ts#L191)
[index.d.ts:192](https://github.com/mostafa/xk6-kafka/blob/main/api-docs/index.d.ts#L192)

---

Expand All @@ -26,7 +26,7 @@

#### Defined in

[index.d.ts:192](https://github.com/mostafa/xk6-kafka/blob/main/api-docs/index.d.ts#L192)
[index.d.ts:193](https://github.com/mostafa/xk6-kafka/blob/main/api-docs/index.d.ts#L193)

---

Expand All @@ -36,4 +36,4 @@

#### Defined in

[index.d.ts:193](https://github.com/mostafa/xk6-kafka/blob/main/api-docs/index.d.ts#L193)
[index.d.ts:194](https://github.com/mostafa/xk6-kafka/blob/main/api-docs/index.d.ts#L194)
2 changes: 1 addition & 1 deletion api-docs/docs/interfaces/ConsumeConfig.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@

#### Defined in

[index.d.ts:186](https://github.com/mostafa/xk6-kafka/blob/main/api-docs/index.d.ts#L186)
[index.d.ts:187](https://github.com/mostafa/xk6-kafka/blob/main/api-docs/index.d.ts#L187)
6 changes: 3 additions & 3 deletions api-docs/docs/interfaces/Container.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

#### Defined in

[index.d.ts:232](https://github.com/mostafa/xk6-kafka/blob/main/api-docs/index.d.ts#L232)
[index.d.ts:233](https://github.com/mostafa/xk6-kafka/blob/main/api-docs/index.d.ts#L233)

---

Expand All @@ -26,7 +26,7 @@

#### Defined in

[index.d.ts:233](https://github.com/mostafa/xk6-kafka/blob/main/api-docs/index.d.ts#L233)
[index.d.ts:234](https://github.com/mostafa/xk6-kafka/blob/main/api-docs/index.d.ts#L234)

---

Expand All @@ -36,4 +36,4 @@

#### Defined in

[index.d.ts:234](https://github.com/mostafa/xk6-kafka/blob/main/api-docs/index.d.ts#L234)
[index.d.ts:235](https://github.com/mostafa/xk6-kafka/blob/main/api-docs/index.d.ts#L235)
Loading

0 comments on commit 59cd729

Please sign in to comment.