From e3570ae45dc8e9f53ec5c0d3a6d5b29fb7574bdd Mon Sep 17 00:00:00 2001 From: Gibheer Date: Tue, 23 Feb 2016 15:41:44 +0100 Subject: [PATCH] seperate ssh constants from schema constants The contants were placed in the same section as the scheme ones, which may lead to confusion. --- modules/setting/setting.go | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) 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