Skip to content

Commit 2428cdb

Browse files
committed
完善样例
1 parent a0fc45d commit 2428cdb

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

examples/http_go_restful/main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import (
99

1010
// 应用metric
1111
_ "github.com/infraboard/mcube/v2/ioc/apps/apidoc/restful"
12+
_ "github.com/infraboard/mcube/v2/ioc/apps/health/restful"
1213
_ "github.com/infraboard/mcube/v2/ioc/apps/metric/restful"
1314
)
1415

ioc/apps/health/interface.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const (
1313
)
1414

1515
type HealthCheck struct {
16-
Path string `json:"path" yaml:"path" toml:"path" env:"HEALTH_CHECK_PATH"`
16+
Path string `json:"path" yaml:"path" toml:"path" env:"HTTP_HEALTH_CHECK_PATH"`
1717
}
1818

1919
type HealthCheckResponse struct {

0 commit comments

Comments
 (0)