Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
yang-xiaodong committed May 29, 2024
1 parent 19f6407 commit 797a8dd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions docs/content/user-guide/en/cap/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Subscribers use the `[CapSubscribe]` attribute to mark themselves as subscribers

When you declare `[CapSubscribe]`, you can change the behavior of the subscriber by specifying the following parameters.

## [CapSubscribe] Name
### Name

> string, required
Expand All @@ -44,7 +44,7 @@ This name corresponds to different items in different Brokers:
- In NATS, it corresponds to the Subject.
- In RedisStreams, it corresponds to the Stream.

## [CapSubscribe] Group
### Group

> string, optional
Expand All @@ -62,7 +62,7 @@ Group corresponds to different items in different Brokers:
- In NATS, it corresponds to Queue Group.
- In RedisStreams, it corresponds to Consumer Group.

## [CapSubscribe] GroupConcurrent
### GroupConcurrent

> byte, optional
Expand Down
6 changes: 3 additions & 3 deletions docs/content/user-guide/zh/cap/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ services.AddCap(config =>

当你在声明 `[CapSubscribe]` 时候,可以通过指定以下参数来改变订阅者的行为。

## [CapSubscribe] Name
### Name

> string, 必须项
Expand All @@ -44,7 +44,7 @@ services.AddCap(config =>
- 在 NATS 中对应 Subject。
- 在 RedisStrems 中对应 Stream.

## [CapSubscribe] Group
### Group

> string, 可选项
Expand All @@ -62,7 +62,7 @@ Group 在不同的 Broker 有不同的对应项。
- 在 NATS 中对应 Queue Group。
- 在 RedisStrems 中对应 Consuemr Group.

## [CapSubscribe] GroupConcurrent
### GroupConcurrent

> byte, 可选项
Expand Down

0 comments on commit 797a8dd

Please sign in to comment.