1
0
mirror of https://github.com/astaxie/beego.git synced 2025-07-10 09:00:18 +00:00

golint toolbox

This commit is contained in:
astaxie
2015-09-12 23:28:24 +08:00
parent be7accc94c
commit 1d200da472
4 changed files with 68 additions and 67 deletions

View File

@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// toolbox healthcheck
// Package toolbox healthcheck
//
// type DatabaseCheck struct {
// }
@ -33,12 +33,12 @@ package toolbox
// health checker map
var AdminCheckList map[string]HealthChecker
// health checker interface
// HealthChecker health checker interface
type HealthChecker interface {
Check() error
}
// add health checker with name string
// AddHealthCheck add health checker with name string
func AddHealthCheck(name string, hc HealthChecker) {
AdminCheckList[name] = hc
}