diff options
author | lunnyxiao <xiaolunwen@gmail.com> | 2014-08-08 13:51:43 +0800 |
---|---|---|
committer | lunnyxiao <xiaolunwen@gmail.com> | 2014-08-08 13:51:43 +0800 |
commit | 7c7014262bdf90880826e6e6cc802bdab300b5ae (patch) | |
tree | a3b9803b8cb8ecc23517e73c1d0cdf73dcb213d5 /models/models.go | |
parent | 57f6ec672ab059c57689a45c7f657923718e62bf (diff) | |
parent | 9d5c0c80a4984acc1a42da8360a712e4f5f615a0 (diff) |
Merge branch 'dev' of github.com:gogits/gogs into dev
Diffstat (limited to 'models/models.go')
-rw-r--r-- | models/models.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/models/models.go b/models/models.go index 31509ed3..af9529f4 100644 --- a/models/models.go +++ b/models/models.go @@ -165,6 +165,10 @@ func GetStatistic() (stats Statistic) { return } +func Ping() error { + return x.Ping() +} + // DumpDatabase dumps all data from database to file system. func DumpDatabase(filePath string) error { return x.DumpAllToFile(filePath) |