You've already forked openaccounting-server
mirror of
https://github.com/openaccounting/oa-server.git
synced 2025-12-09 00:50:59 +13:00
Added GET /health-check and related files
This commit is contained in:
9
core/model/syshealth.go
Normal file
9
core/model/syshealth.go
Normal file
@@ -0,0 +1,9 @@
|
||||
package model
|
||||
|
||||
type SystemHealthInteface interface {
|
||||
PingDatabase() error
|
||||
}
|
||||
|
||||
func (model *Model) PingDatabase() error {
|
||||
return model.db.Ping()
|
||||
}
|
||||
Reference in New Issue
Block a user