diff options
author | Unknwon <joe2010xtmf@163.com> | 2014-08-06 17:21:24 -0400 |
---|---|---|
committer | Unknwon <joe2010xtmf@163.com> | 2014-08-06 17:21:24 -0400 |
commit | a8e05fdf1b45578ad260aca3d239beb8be6197bf (patch) | |
tree | 990aa7217a873b6e10bb417b1489fb47133bd11c /models | |
parent | 6fc210752911c62c45f7b7127bac757c6bc4df71 (diff) | |
download | gitea-a8e05fdf1b45578ad260aca3d239beb8be6197bf.tar.gz gitea-a8e05fdf1b45578ad260aca3d239beb8be6197bf.zip |
Use toolbox
Diffstat (limited to 'models')
-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 31509ed349..af9529f40a 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) |