From: Gibheer Date: Tue, 23 Feb 2016 14:41:44 +0000 (+0100) Subject: seperate ssh constants from schema constants X-Git-Tag: v0.9.99~427^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e3570ae45dc8e9f53ec5c0d3a6d5b29fb7574bdd;p=gitea.git seperate ssh constants from schema constants The contants were placed in the same section as the scheme ones, which may lead to confusion. --- diff --git a/modules/setting/setting.go b/modules/setting/setting.go index e667ee7433..25b9d8590e 100644 --- a/modules/setting/setting.go +++ b/modules/setting/setting.go @@ -27,14 +27,17 @@ import ( "github.com/gogits/gogs/modules/user" ) +const ( + SSH_PUBLICKEY_CHECK_NATIVE = "native" + SSH_PUBLICKEY_CHECK_KEYGEN = "ssh-keygen" +) + type Scheme string const ( - HTTP Scheme = "http" - HTTPS Scheme = "https" - FCGI Scheme = "fcgi" - SSH_PUBLICKEY_CHECK_NATIVE = "native" - SSH_PUBLICKEY_CHECK_KEYGEN = "ssh-keygen" + HTTP Scheme = "http" + HTTPS Scheme = "https" + FCGI Scheme = "fcgi" ) type LandingPage string