Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( CacheService = struct { Cache LastCommit struct { Enabled bool TTL time.Duration CommitsCount int64 } }{ LastCommit: struct { Enabled bool TTL time.Duration CommitsCount int64 }{ Enabled: true, TTL: 8760 * time.Hour, CommitsCount: 1000, }, } Git = struct { EnableAutoGitWireProtocol bool DisableCoreProtectNTFS bool DisablePartialClone bool CommitsRangeSize int Path string HomePath string Timeout struct { Default int } }{} LFS = struct { StartServer bool }{} Proxy = struct { Enabled bool ProxyURL string ProxyURLFixed *url.URL ProxyHosts []string }{ Enabled: false, ProxyURL: "", ProxyHosts: []string{}, } )
Functions ¶
func LastCommitCacheTTLSeconds ¶
func LastCommitCacheTTLSeconds() int64
LastCommitCacheTTLSeconds returns the TTLSeconds or unix timestamp for memcache
Types ¶
Click to show internal directories.
Click to hide internal directories.