mirror of
https://github.com/pushbits/server.git
synced 2025-07-23 19:37:52 +02:00
Add health check for Docker image
This commit is contained in:
parent
3bdadd6029
commit
da1aa3c3b8
5 changed files with 37 additions and 0 deletions
6
database/health.go
Normal file
6
database/health.go
Normal file
|
@ -0,0 +1,6 @@
|
|||
package database
|
||||
|
||||
// Health reports the status of the database connection.
|
||||
func (d *Database) Health() error {
|
||||
return d.sqldb.Ping()
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue