add health check api

This commit is contained in:
MaysWind
2022-12-05 22:59:26 +08:00
parent fd7905833e
commit 6f88e6ef26
4 changed files with 35 additions and 1 deletions
+3 -1
View File
@@ -7,7 +7,9 @@ type ConfigContainer struct {
// Initialize a config container singleton instance
var (
Container = &ConfigContainer{}
Version string
CommitHash string
Container = &ConfigContainer{}
)
// SetCurrentConfig sets the current config by a given config