setting

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 21, 2023 License: MIT Imports: 5 Imported by: 0

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

func NewServices

func NewServices()

NewServices initializes the services

Types

type Cache

type Cache struct {
	TTL time.Duration
}

func (Cache) TTLSeconds

func (c Cache) TTLSeconds() int64

TTLSeconds returns the TTLSeconds or unix timestamp for memcache

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL