Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update STARTUP_zh.md #24

Merged
merged 1 commit into from
Feb 5, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions doc/zh/STARTUP_zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ func init() {
```

## 自定义配置
arishem支持多个配置的自定义,包括规则运算时的缓存实现、批大小的计算方式以及无优先级的最大并大数量等。在arishem初始化的时候传入你的自定义配置:
arishem支持多个配置的自定义,包括规则运算时的缓存实现、批大小的计算方式以及无优先级的最大并发数量等。在arishem初始化的时候传入你的自定义配置:

```go
func init() {
Expand Down Expand Up @@ -150,4 +150,4 @@ err := arishem.AddSubCondition(${name1}, ${expression1}, ${name2}, ${expression2
2. SubConditionManage方法说明
- GetConditionTree -> 定义arishem如何通过条件名称来获取该条件的解析树
- RuleIdentityMapAsCondName -> 告诉arishem在解析规则时,是否将规则的identity作为其条件的名称进行存储, arishem默认为true
- WhenConditionParsed -> 该方法会在调用AddSubCondition方法成功解析一段条件表达式后回调,或者在启用了RuleIdentityMapAsCondName的情况下,成功解析规则后进行回调,在这个方法里,业务可以自定实现条件名称和解析树的查找关系
- WhenConditionParsed -> 该方法会在调用AddSubCondition方法成功解析一段条件表达式后回调,或者在启用了RuleIdentityMapAsCondName的情况下,成功解析规则后进行回调,在这个方法里,业务可以自定实现条件名称和解析树的查找关系