Add health check for Docker image

This commit is contained in:
eikendev 2020-08-06 20:42:35 +02:00
parent 3bdadd6029
commit da1aa3c3b8
No known key found for this signature in database
GPG key ID: A1BDB1B28C8EF694
5 changed files with 37 additions and 0 deletions

6
database/health.go Normal file
View file

@ -0,0 +1,6 @@
package database
// Health reports the status of the database connection.
func (d *Database) Health() error {
return d.sqldb.Ping()
}