代码拉取完成,页面将自动刷新
package main
import (
"path/filepath"
"github.com/sirupsen/logrus"
)
var (
//Default www static file dir
DefaultHTTPDir = "web"
)
//ServerHTTPDir
func (obj *StorageST) ServerHTTPDir() string {
obj.mutex.RLock()
defer obj.mutex.RUnlock()
if filepath.Clean(obj.Server.HTTPDir) == "." {
return DefaultHTTPDir
}
return filepath.Clean(obj.Server.HTTPDir)
}
//ServerHTTPDebug read debug options
func (obj *StorageST) ServerHTTPDebug() bool {
obj.mutex.RLock()
defer obj.mutex.RUnlock()
return obj.Server.HTTPDebug
}
//ServerLogLevel read debug options
func (obj *StorageST) ServerLogLevel() logrus.Level {
obj.mutex.RLock()
defer obj.mutex.RUnlock()
return obj.Server.LogLevel
}
//ServerHTTPDemo read demo options
func (obj *StorageST) ServerHTTPDemo() bool {
obj.mutex.RLock()
defer obj.mutex.RUnlock()
return obj.Server.HTTPDemo
}
//ServerHTTPLogin read Login options
func (obj *StorageST) ServerHTTPLogin() string {
obj.mutex.RLock()
defer obj.mutex.RUnlock()
return obj.Server.HTTPLogin
}
//ServerHTTPPassword read Password options
func (obj *StorageST) ServerHTTPPassword() string {
obj.mutex.RLock()
defer obj.mutex.RUnlock()
return obj.Server.HTTPPassword
}
//ServerHTTPPort read HTTP Port options
func (obj *StorageST) ServerHTTPPort() string {
obj.mutex.RLock()
defer obj.mutex.RUnlock()
return obj.Server.HTTPPort
}
//ServerRTSPPort read HTTP Port options
func (obj *StorageST) ServerRTSPPort() string {
obj.mutex.RLock()
defer obj.mutex.RUnlock()
return obj.Server.RTSPPort
}
//ServerHTTPS read HTTPS Port options
func (obj *StorageST) ServerHTTPS() bool {
obj.mutex.RLock()
defer obj.mutex.RUnlock()
return obj.Server.HTTPS
}
//ServerHTTPSPort read HTTPS Port options
func (obj *StorageST) ServerHTTPSPort() string {
obj.mutex.RLock()
defer obj.mutex.RUnlock()
return obj.Server.HTTPSPort
}
//ServerHTTPSAutoTLSEnable read HTTPS Port options
func (obj *StorageST) ServerHTTPSAutoTLSEnable() bool {
obj.mutex.RLock()
defer obj.mutex.RUnlock()
return obj.Server.HTTPSAutoTLSEnable
}
//ServerHTTPSAutoTLSName read HTTPS Port options
func (obj *StorageST) ServerHTTPSAutoTLSName() string {
obj.mutex.RLock()
defer obj.mutex.RUnlock()
return obj.Server.HTTPSAutoTLSName
}
//ServerHTTPSCert read HTTPS Cert options
func (obj *StorageST) ServerHTTPSCert() string {
obj.mutex.RLock()
defer obj.mutex.RUnlock()
return obj.Server.HTTPSCert
}
//ServerHTTPSKey read HTTPS Key options
func (obj *StorageST) ServerHTTPSKey() string {
obj.mutex.RLock()
defer obj.mutex.RUnlock()
return obj.Server.HTTPSKey
}
//ServerTokenEnable read HTTPS Key options
func (obj *StorageST) ServerTokenEnable() bool {
obj.mutex.RLock()
defer obj.mutex.RUnlock()
return obj.Server.Token.Enable
}
//ServerTokenBackend read HTTPS Key options
func (obj *StorageST) ServerTokenBackend() string {
obj.mutex.RLock()
defer obj.mutex.RUnlock()
return obj.Server.Token.Backend
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。