package
1.24.0-dev
Repository: https://github.com/go-gitea/gitea.git
Documentation: pkg.go.dev

# Packages

# Functions

ConfigInheritedKey works like ini.Section.Key(), but it always returns a new key instance, it is O(n) because NewKey is O(n) and the returned key is safe to be used with "MustXxx", it doesn't change the parent's values.
ConfigSectionKey only searches the keys in the given section, but it is O(n).
DBConnStr returns database connection string.
GetCronSettings maps the cron subsection to the provided config.
HasInstallLock checks the install-lock in ConfigProvider directly, because sometimes the config file is not loaded into setting variables yet.
IndexerGlobFromString parses a comma separated list of patterns and returns a glob.Glob slice suited for repo indexing.
InitWorkPathAndCfgProvider will set AppWorkPath, CustomPath and CustomConf, init default config provider by CustomConf.
InitWorkPathAndCommonConfig will set AppWorkPath, CustomPath and CustomConf, init default config provider by CustomConf and load common settings,.
IsRunUserMatchCurrentUser returns false if configured run user does not match actual user that runs the app.
IsValidStorageType returns true if the given storage type is valid.
LastCommitCacheTTLSeconds returns the TTLSeconds or unix timestamp for memcache.
LoadDBSetting loads the database settings.
LoadSettings initializes the settings for normal start up.
LoadSettingsForInstall initializes the settings for install.
MakeAbsoluteAssetURL returns the absolute asset url prefix without a trailing slash.
MakeManifestData generates web app manifest JSON.
NewConfigProviderForLocale loads locale configuration from source and others.
NewConfigProviderFromData this function is mainly for testing purpose.
NewConfigProviderFromFile load configuration from file.
ParseMSSQLHostPort splits the host into host and port.
PrepareAppDataPath creates app data directory if necessary.
RestartLogsWithPIDSuffix restarts the logs with a PID suffix on files FIXME: it seems not right, it breaks log rotating or log collectors.

# Constants

AzureBlobStorageType is the type descriptor for azure blob storage.
enumerates all the types of captchas.
enumerates all the scheme types.
enumerates all the scheme types.
enumerates all the types of captchas.
enumerates all the scheme types.
enumerates all the scheme types.
enumerates all the scheme types.
enumerates all the types of captchas.
ItemsPerPage maximum items per page in forks, watchers and stars of a repo.
enumerates all the landing page types.
enumerates all the landing page types.
enumerates all the landing page types.
enumerates all the landing page types.
LocalStorageType is the type descriptor for local storage.
enumerates all the types of captchas.
MemcacheMaxTTL represents the maximum memcache TTL.
MinioStorageType is the type descriptor for minio storage.
OAuth2AccountLinkingAuto account will be automatically linked if account exist.
OAuth2AccountLinkingDisabled error will be displayed if account exist.
OAuth2AccountLinkingLogin account linking login will be displayed if account exist.
use email field.
use nickname field.
use preferred_username field.
use user id (sub) field as gitea's username.
enumerates all the types of captchas.
enumerates all the policy repository creating.
enumerates all the policy repository creating.
enumerates all the policy repository creating.

# Variables

Server settings.
Server settings.
Server settings.
Server settings.
Server settings.
Server settings.
Actions settings.
Admin settings.
API settings.
AppBuiltWith represents a human-readable version go runtime build version and build tags.
AppDataPath is the default path for storing data.
AppName is the Application name, used in the page title.
AppPath represents the path to the gitea binary.
AppStartTime store time gitea has started.
AppSubURL represents the sub-url mounting point for gitea.
AppURL is the Application ROOT_URL.
AppVer is the version of the current build of Gitea.
AppWorkPath is the "working directory" of Gitea.
AssetVersion holds a opaque value that is used for cache-busting assets.
CacheService the global cache.
Server settings.
settings.
CORSConfig defines CORS settings.
Custom directory path.
Database holds the database settings.
DatabaseTypeNames contains the friendly names for all database types.
DefaultUILocation is the location on the UI, so that we can display the time on UI.
Depreciated: migrated to database.
Server settings.
Server settings.
Depreciated: migrated to database.
Server settings.
Server settings.
EnableSQLite3 use SQLite3, set by build flag.
ExternalMarkupRenderers represents the external markup renderers.
ExternalMarkupRenderers represents the external markup renderers.
Federation settings.
Git settings.
GlobalLock represents configuration of global lock.
Server settings.
Server settings.
Server settings.
Server settings.
HttpsigAlgs is a constant slice of httpsig algorithm objects.
Indexer settings.
Security settings.
internal access token.
IsInTesting indicates whether the testing is running.
IsProd is true if RunMode is not "dev".
settings.
Server settings.
Server settings.
I18n settings.
LFS represents the server-side configuration for Git LFS.
LFSClient represents configuration for Gitea's LFS clients, for example: mirroring upstream Git LFS.
LocalURL is the url for locally running applications to contact Gitea.
Server settings.
MailService the global mailer.
Server settings.
Markdown settings.
ExternalMarkupRenderers represents the external markup renderers.
Metrics settings.
Migrations settings.
MimeTypeMap defines custom mime type mapping settings.
Mirror settings.
OAuth2Client settings.
Server settings.
Package registry settings.
Server settings.
Server settings.
Server settings.
Server settings.
Project settings.
Server settings.
Proxy settings.
Server settings.
Server settings.
`ini:"PROXY_PROTOCOL_TLS_BRIDGING"`.
Server settings.
Server settings.
Repository settings.
Repository settings.
RunMode is the running mode of Gitea, it only accepts two values: "dev" and "prod".
RunUser is the OS user that Gitea is running as.
Repository settings.
Service settings.
SessionConfig defines Session settings.
Server settings.
Server settings.
Server settings.
Server settings.
StartupProblems contains the messages for various startup problems, including: setting option, file/folder, etc.
Server settings.
Server settings.
Server settings.
Server settings.
SupportedDatabaseTypes includes all XORM supported databases type, sqlite3 maybe added by `database_sqlite3.go`.
UI settings.
Server settings.
`ini:"USE_PROXY_PROTOCOL"`.
UseSubURLPath makes Gitea handle requests with sub-path like "/sub-path/owner/repo/...", to make it easier to debug sub-path related problems without a reverse proxy.
Webhook settings.

# Structs

MinioStorageConfig represents the configuration for a minio storage.
Cache represents cache settings.
Mailer represents mail service.
MarkupRenderer defines the external parser configured in ini.
MarkupSanitizerRule defines the policy for whitelisting attributes on certain elements.
MinioStorageConfig represents the configuration for a minio storage.
QueueSettings represent the settings for a queue from the ini.
Storage represents configuration of storages.

# Interfaces

ConfigProvider represents a config provider.

# Type aliases

AllowedVisibility store in a 3 item bool array what is allowed.
LandingPage describes the default page.
OAuth2AccountLinkingType is enum describing behaviour of linking with existing account.
OAuth2UsernameType is enum describing the way gitea 'name' should be generated from oauth2 data.
Scheme describes protocol types.
StorageType is a type of Storage.