interface HealthCheckApplicationBuilderExtensions
cangjie
public interface HealthCheckApplicationBuilderExtensions功能:提供将健康检查中间件接入应用管道的扩展约定。
扩展到
成员概览
| 成员 | 功能 |
|---|---|
| func useHealthChecks(String) | 使用默认选项在指定路径启用健康检查。 |
| func useHealthChecks(String, (HealthCheckOptions) -> Unit) | 使用自定义选项回调在指定路径启用健康检查。 |
| func useHealthChecks(String, HealthCheckOptions) | 使用指定选项在指定路径启用健康检查。 |
func useHealthChecks(String)
cangjie
func useHealthChecks(path: String): Unit功能:使用默认选项在指定路径启用健康检查。
参数:
- path:
String- 健康检查请求路径。
返回值:
Unit
func useHealthChecks(String, (HealthCheckOptions) -> Unit)
cangjie
func useHealthChecks(path: String, configureOptions: (HealthCheckOptions) -> Unit): Unit功能:使用自定义选项回调在指定路径启用健康检查。
参数:
- path:
String- 健康检查请求路径。 - configureOptions: (HealthCheckOptions) -> Unit - 用于配置健康检查选项的回调。
返回值:
Unit
func useHealthChecks(String, HealthCheckOptions)
cangjie
func useHealthChecks(path: String, options: HealthCheckOptions): Unit功能:使用指定选项在指定路径启用健康检查。
参数:
- path:
String- 健康检查请求路径。 - options: HealthCheckOptions - 要使用的健康检查选项。
返回值:
Unit