-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- 新增公共配置、广寒宫配置、后裔配置和月兔配置的详细说明 - 添加了各种配置项的示例和解释 - 优化了文档结构,增加了标题和小节
- Loading branch information
1 parent
e0f2f11
commit d22acb5
Showing
4 changed files
with
336 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
--- | ||
sidebar_position: 3 | ||
--- | ||
|
||
# 后裔(HouYi)配置 | ||
|
||
```protocol | ||
message Bootstrap { | ||
pkg.conf.Server server = 1; | ||
string env = 2; | ||
Watch watch = 3; | ||
// 月宫代理服务 | ||
pkg.conf.MicroServer palace_server = 5; | ||
// 服务发现配置, 如果配置了服务发现,endpoint则会被当作服务发现地址, 没有配置直接当作服务地址 | ||
pkg.conf.Discovery discovery = 6; | ||
pkg.conf.HTTPServer http = 7; | ||
pkg.conf.GRPCServer grpc = 8; | ||
pkg.conf.Cache cache = 9; | ||
// 是否依赖Palace服务 | ||
bool dependPalace = 10; | ||
// 选择团队, 为空则默认为所有团队 | ||
repeated uint32 teams = 11; | ||
// metrics配置 | ||
string metricsToken = 19; | ||
// log配置 | ||
pkg.conf.Log log = 20; | ||
} | ||
message Watch { | ||
message Strategy { | ||
// 超时时间 | ||
google.protobuf.Duration timeout = 1; | ||
// 执行频率 cron 表达式 | ||
string interval = 2; | ||
} | ||
message AlertEvent { | ||
// 超时时间 | ||
google.protobuf.Duration timeout = 1; | ||
// 执行频率 | ||
google.protobuf.Duration interval = 2; | ||
} | ||
Strategy strategy = 1; | ||
AlertEvent alertEvent = 2; | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
--- | ||
sidebar_position: 4 | ||
--- | ||
|
||
# 月兔(Rabbit)配置 | ||
|
||
```protocol | ||
message Bootstrap { | ||
pkg.conf.Server server = 1; | ||
string env = 3; | ||
// 根据路由匹配具体的发送对象 | ||
map<string, pkg.conf.Receiver> receivers = 4; | ||
map<string, string> templates = 5; | ||
// 全局邮件配置 | ||
pkg.conf.EmailConfig global_email_config = 6; | ||
// 服务发现配置, 如果配置了服务发现,endpoint则会被当作服务发现地址, 没有配置直接当作服务地址 | ||
pkg.conf.Discovery discovery = 7; | ||
pkg.conf.HTTPServer http = 8; | ||
pkg.conf.GRPCServer grpc = 9; | ||
pkg.conf.Cache cache = 10; | ||
repeated uint32 teams = 11; | ||
bool dependPalace = 12; | ||
// 月宫代理服务 | ||
pkg.conf.MicroServer palace_server = 13; | ||
// metrics配置 | ||
string metricsToken = 19; | ||
// log配置 | ||
pkg.conf.Log log = 20; | ||
} | ||
``` |