diff options
author | Gibheer <gibheer+git@zero-knowledge.org> | 2016-02-23 15:41:44 +0100 |
---|---|---|
committer | Gibheer <gibheer+git@zero-knowledge.org> | 2016-02-23 15:41:44 +0100 |
commit | e3570ae45dc8e9f53ec5c0d3a6d5b29fb7574bdd (patch) | |
tree | 0631c273150842d692de7a98d26275a59ffac7c4 /modules/setting | |
parent | 2f27ee2232ca23404baf31443a3cf661d4445232 (diff) | |
download | gitea-e3570ae45dc8e9f53ec5c0d3a6d5b29fb7574bdd.tar.gz gitea-e3570ae45dc8e9f53ec5c0d3a6d5b29fb7574bdd.zip |
seperate ssh constants from schema constants
The contants were placed in the same section as the scheme ones, which
may lead to confusion.
Diffstat (limited to 'modules/setting')
-rw-r--r-- | modules/setting/setting.go | 13 |
1 files 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 |