config

package
v0.8.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2023 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Defaults = Configuration{
	LogLevel:        "info",
	LogDbQueries:    false,
	ApplicationName: "gotosocial",
	LandingPageUser: "",
	ConfigPath:      "",
	Host:            "",
	AccountDomain:   "",
	Protocol:        "https",
	BindAddress:     "0.0.0.0",
	Port:            8080,
	TrustedProxies:  []string{"127.0.0.1/32", "::1"},

	DbType:                   "postgres",
	DbAddress:                "",
	DbPort:                   5432,
	DbUser:                   "",
	DbPassword:               "",
	DbDatabase:               "gotosocial",
	DbTLSMode:                "disable",
	DbTLSCACert:              "",
	DbMaxOpenConnsMultiplier: 8,
	DbSqliteJournalMode:      "WAL",
	DbSqliteSynchronous:      "NORMAL",
	DbSqliteCacheSize:        8 * bytesize.MiB,
	DbSqliteBusyTimeout:      time.Minute * 30,

	WebTemplateBaseDir: "./web/template/",
	WebAssetBaseDir:    "./web/assets/",

	InstanceExposePeers:            false,
	InstanceExposeSuspended:        false,
	InstanceExposeSuspendedWeb:     false,
	InstanceDeliverToSharedInboxes: true,

	AccountsRegistrationOpen: true,
	AccountsApprovalRequired: true,
	AccountsReasonRequired:   true,
	AccountsAllowCustomCSS:   false,

	MediaImageMaxSize:        10 * bytesize.MiB,
	MediaVideoMaxSize:        40 * bytesize.MiB,
	MediaDescriptionMinChars: 0,
	MediaDescriptionMaxChars: 500,
	MediaRemoteCacheDays:     30,
	MediaEmojiLocalMaxSize:   50 * bytesize.KiB,
	MediaEmojiRemoteMaxSize:  100 * bytesize.KiB,

	StorageBackend:       "local",
	StorageLocalBasePath: "/gotosocial/storage",
	StorageS3UseSSL:      true,
	StorageS3Proxy:       false,

	StatusesMaxChars:           5000,
	StatusesCWMaxChars:         100,
	StatusesPollMaxOptions:     6,
	StatusesPollOptionMaxChars: 50,
	StatusesMediaMaxFiles:      6,

	LetsEncryptEnabled:      false,
	LetsEncryptPort:         80,
	LetsEncryptCertDir:      "/gotosocial/storage/certs",
	LetsEncryptEmailAddress: "",

	TLSCertificateChain: "",
	TLSCertificateKey:   "",

	OIDCEnabled:          false,
	OIDCIdpName:          "",
	OIDCSkipVerification: false,
	OIDCIssuer:           "",
	OIDCClientID:         "",
	OIDCClientSecret:     "",
	OIDCScopes:           []string{oidc.ScopeOpenID, "profile", "email", "groups"},
	OIDCLinkExisting:     false,

	SMTPHost:               "",
	SMTPPort:               0,
	SMTPUsername:           "",
	SMTPPassword:           "",
	SMTPFrom:               "GoToSocial",
	SMTPDiscloseRecipients: false,

	SyslogEnabled:  false,
	SyslogProtocol: "udp",
	SyslogAddress:  "localhost:514",

	AdvancedCookiesSamesite:      "lax",
	AdvancedRateLimitRequests:    300,
	AdvancedThrottlingMultiplier: 8,

	Cache: CacheConfiguration{
		GTS: GTSCacheConfiguration{
			AccountMaxSize:   2000,
			AccountTTL:       time.Minute * 30,
			AccountSweepFreq: time.Minute,

			BlockMaxSize:   1000,
			BlockTTL:       time.Minute * 30,
			BlockSweepFreq: time.Minute,

			DomainBlockMaxSize:   2000,
			DomainBlockTTL:       time.Hour * 24,
			DomainBlockSweepFreq: time.Minute,

			EmojiMaxSize:   2000,
			EmojiTTL:       time.Minute * 30,
			EmojiSweepFreq: time.Minute,

			EmojiCategoryMaxSize:   100,
			EmojiCategoryTTL:       time.Minute * 30,
			EmojiCategorySweepFreq: time.Minute,

			FollowMaxSize:   2000,
			FollowTTL:       time.Minute * 30,
			FollowSweepFreq: time.Minute,

			FollowRequestMaxSize:   2000,
			FollowRequestTTL:       time.Minute * 30,
			FollowRequestSweepFreq: time.Minute,

			MediaMaxSize:   1000,
			MediaTTL:       time.Minute * 30,
			MediaSweepFreq: time.Minute,

			MentionMaxSize:   2000,
			MentionTTL:       time.Minute * 30,
			MentionSweepFreq: time.Minute,

			NotificationMaxSize:   1000,
			NotificationTTL:       time.Minute * 30,
			NotificationSweepFreq: time.Minute,

			ReportMaxSize:   100,
			ReportTTL:       time.Minute * 30,
			ReportSweepFreq: time.Minute,

			StatusMaxSize:   2000,
			StatusTTL:       time.Minute * 30,
			StatusSweepFreq: time.Minute,

			StatusFaveMaxSize:   2000,
			StatusFaveTTL:       time.Minute * 30,
			StatusFaveSweepFreq: time.Minute,

			TombstoneMaxSize:   500,
			TombstoneTTL:       time.Minute * 30,
			TombstoneSweepFreq: time.Minute,

			UserMaxSize:   500,
			UserTTL:       time.Minute * 30,
			UserSweepFreq: time.Minute,

			WebfingerMaxSize:   250,
			WebfingerTTL:       time.Hour * 24,
			WebfingerSweepFreq: time.Minute * 15,
		},

		VisibilityMaxSize:   2000,
		VisibilityTTL:       time.Minute * 30,
		VisibilitySweepFreq: time.Minute,
	},

	AdminMediaPruneDryRun: true,

	RequestIDHeader: "X-Request-Id",
}

Defaults contains a populated Configuration with reasonable defaults. Note that if you use this, you will still need to set Host, and, if desired, ConfigPath.

Functions

func AccountDomainFlag added in v0.3.5

func AccountDomainFlag() string

AccountDomainFlag returns the flag name for the 'AccountDomain' field

func AccountsAllowCustomCSSFlag added in v0.5.0

func AccountsAllowCustomCSSFlag() string

AccountsAllowCustomCSSFlag returns the flag name for the 'AccountsAllowCustomCSS' field

func AccountsApprovalRequiredFlag added in v0.3.5

func AccountsApprovalRequiredFlag() string

AccountsApprovalRequiredFlag returns the flag name for the 'AccountsApprovalRequired' field

func AccountsReasonRequiredFlag added in v0.3.5

func AccountsReasonRequiredFlag() string

AccountsReasonRequiredFlag returns the flag name for the 'AccountsReasonRequired' field

func AccountsRegistrationOpenFlag added in v0.3.5

func AccountsRegistrationOpenFlag() string

AccountsRegistrationOpenFlag returns the flag name for the 'AccountsRegistrationOpen' field

func AddAdminAccount added in v0.3.5

func AddAdminAccount(cmd *cobra.Command)

AddAdminAccount attaches flags pertaining to admin account actions.

func AddAdminAccountCreate added in v0.3.5

func AddAdminAccountCreate(cmd *cobra.Command)

AddAdminAccountCreate attaches flags pertaining to admin account creation.

func AddAdminAccountPassword added in v0.3.5

func AddAdminAccountPassword(cmd *cobra.Command)

AddAdminAccountPassword attaches flags pertaining to admin account password reset.

func AddAdminMediaPrune added in v0.6.0

func AddAdminMediaPrune(cmd *cobra.Command)

AddAdminMediaPrune attaches flags pertaining to media storage prune commands.

func AddAdminTrans added in v0.3.5

func AddAdminTrans(cmd *cobra.Command)

AddAdminTrans attaches flags pertaining to import/export commands.

func AddGlobalFlags added in v0.3.5

func AddGlobalFlags(cmd *cobra.Command)

AddGlobalFlags will attach global configuration flags to given cobra command, loading defaults from global config.

func AddServerFlags added in v0.3.5

func AddServerFlags(cmd *cobra.Command)

AddServerFlags will attach server configuration flags to given cobra command, loading defaults from global config.

func AdminAccountEmailFlag added in v0.3.5

func AdminAccountEmailFlag() string

AdminAccountEmailFlag returns the flag name for the 'AdminAccountEmail' field

func AdminAccountPasswordFlag added in v0.3.5

func AdminAccountPasswordFlag() string

AdminAccountPasswordFlag returns the flag name for the 'AdminAccountPassword' field

func AdminAccountUsernameFlag added in v0.3.5

func AdminAccountUsernameFlag() string

AdminAccountUsernameFlag returns the flag name for the 'AdminAccountUsername' field

func AdminMediaPruneDryRunFlag added in v0.6.0

func AdminMediaPruneDryRunFlag() string

AdminMediaPruneDryRunFlag returns the flag name for the 'AdminMediaPruneDryRun' field

func AdminTransPathFlag added in v0.3.5

func AdminTransPathFlag() string

AdminTransPathFlag returns the flag name for the 'AdminTransPath' field

func AdvancedCookiesSamesiteFlag added in v0.3.5

func AdvancedCookiesSamesiteFlag() string

AdvancedCookiesSamesiteFlag returns the flag name for the 'AdvancedCookiesSamesite' field

func AdvancedRateLimitRequestsFlag added in v0.6.0

func AdvancedRateLimitRequestsFlag() string

AdvancedRateLimitRequestsFlag returns the flag name for the 'AdvancedRateLimitRequests' field

func AdvancedThrottlingMultiplierFlag added in v0.7.0

func AdvancedThrottlingMultiplierFlag() string

AdvancedThrottlingMultiplierFlag returns the flag name for the 'AdvancedThrottlingMultiplier' field

func AdvancedThrottlingRetryAfterFlag added in v0.7.0

func AdvancedThrottlingRetryAfterFlag() string

AdvancedThrottlingRetryAfterFlag returns the flag name for the 'AdvancedThrottlingRetryAfter' field

func ApplicationNameFlag added in v0.3.5

func ApplicationNameFlag() string

ApplicationNameFlag returns the flag name for the 'ApplicationName' field

func BindAddressFlag added in v0.3.5

func BindAddressFlag() string

BindAddressFlag returns the flag name for the 'BindAddress' field

func BindFlags added in v0.3.5

func BindFlags(cmd *cobra.Command) error

BindFlags binds given command's pflags to the global viper instance.

func CacheGTSAccountMaxSizeFlag added in v0.7.0

func CacheGTSAccountMaxSizeFlag() string

CacheGTSAccountMaxSizeFlag returns the flag name for the 'Cache.GTS.AccountMaxSize' field

func CacheGTSAccountSweepFreqFlag added in v0.7.0

func CacheGTSAccountSweepFreqFlag() string

CacheGTSAccountSweepFreqFlag returns the flag name for the 'Cache.GTS.AccountSweepFreq' field

func CacheGTSAccountTTLFlag added in v0.7.0

func CacheGTSAccountTTLFlag() string

CacheGTSAccountTTLFlag returns the flag name for the 'Cache.GTS.AccountTTL' field

func CacheGTSBlockMaxSizeFlag added in v0.7.0

func CacheGTSBlockMaxSizeFlag() string

CacheGTSBlockMaxSizeFlag returns the flag name for the 'Cache.GTS.BlockMaxSize' field

func CacheGTSBlockSweepFreqFlag added in v0.7.0

func CacheGTSBlockSweepFreqFlag() string

CacheGTSBlockSweepFreqFlag returns the flag name for the 'Cache.GTS.BlockSweepFreq' field

func CacheGTSBlockTTLFlag added in v0.7.0

func CacheGTSBlockTTLFlag() string

CacheGTSBlockTTLFlag returns the flag name for the 'Cache.GTS.BlockTTL' field

func CacheGTSDomainBlockMaxSizeFlag added in v0.7.0

func CacheGTSDomainBlockMaxSizeFlag() string

CacheGTSDomainBlockMaxSizeFlag returns the flag name for the 'Cache.GTS.DomainBlockMaxSize' field

func CacheGTSDomainBlockSweepFreqFlag added in v0.7.0

func CacheGTSDomainBlockSweepFreqFlag() string

CacheGTSDomainBlockSweepFreqFlag returns the flag name for the 'Cache.GTS.DomainBlockSweepFreq' field

func CacheGTSDomainBlockTTLFlag added in v0.7.0

func CacheGTSDomainBlockTTLFlag() string

CacheGTSDomainBlockTTLFlag returns the flag name for the 'Cache.GTS.DomainBlockTTL' field

func CacheGTSEmojiCategoryMaxSizeFlag added in v0.7.0

func CacheGTSEmojiCategoryMaxSizeFlag() string

CacheGTSEmojiCategoryMaxSizeFlag returns the flag name for the 'Cache.GTS.EmojiCategoryMaxSize' field

func CacheGTSEmojiCategorySweepFreqFlag added in v0.7.0

func CacheGTSEmojiCategorySweepFreqFlag() string

CacheGTSEmojiCategorySweepFreqFlag returns the flag name for the 'Cache.GTS.EmojiCategorySweepFreq' field

func CacheGTSEmojiCategoryTTLFlag added in v0.7.0

func CacheGTSEmojiCategoryTTLFlag() string

CacheGTSEmojiCategoryTTLFlag returns the flag name for the 'Cache.GTS.EmojiCategoryTTL' field

func CacheGTSEmojiMaxSizeFlag added in v0.7.0

func CacheGTSEmojiMaxSizeFlag() string

CacheGTSEmojiMaxSizeFlag returns the flag name for the 'Cache.GTS.EmojiMaxSize' field

func CacheGTSEmojiSweepFreqFlag added in v0.7.0

func CacheGTSEmojiSweepFreqFlag() string

CacheGTSEmojiSweepFreqFlag returns the flag name for the 'Cache.GTS.EmojiSweepFreq' field

func CacheGTSEmojiTTLFlag added in v0.7.0

func CacheGTSEmojiTTLFlag() string

CacheGTSEmojiTTLFlag returns the flag name for the 'Cache.GTS.EmojiTTL' field

func CacheGTSFollowMaxSizeFlag added in v0.8.0

func CacheGTSFollowMaxSizeFlag() string

CacheGTSFollowMaxSizeFlag returns the flag name for the 'Cache.GTS.FollowMaxSize' field

func CacheGTSFollowRequestMaxSizeFlag added in v0.8.0

func CacheGTSFollowRequestMaxSizeFlag() string

CacheGTSFollowRequestMaxSizeFlag returns the flag name for the 'Cache.GTS.FollowRequestMaxSize' field

func CacheGTSFollowRequestSweepFreqFlag added in v0.8.0

func CacheGTSFollowRequestSweepFreqFlag() string

CacheGTSFollowRequestSweepFreqFlag returns the flag name for the 'Cache.GTS.FollowRequestSweepFreq' field

func CacheGTSFollowRequestTTLFlag added in v0.8.0

func CacheGTSFollowRequestTTLFlag() string

CacheGTSFollowRequestTTLFlag returns the flag name for the 'Cache.GTS.FollowRequestTTL' field

func CacheGTSFollowSweepFreqFlag added in v0.8.0

func CacheGTSFollowSweepFreqFlag() string

CacheGTSFollowSweepFreqFlag returns the flag name for the 'Cache.GTS.FollowSweepFreq' field

func CacheGTSFollowTTLFlag added in v0.8.0

func CacheGTSFollowTTLFlag() string

CacheGTSFollowTTLFlag returns the flag name for the 'Cache.GTS.FollowTTL' field

func CacheGTSMediaMaxSizeFlag added in v0.8.0

func CacheGTSMediaMaxSizeFlag() string

CacheGTSMediaMaxSizeFlag returns the flag name for the 'Cache.GTS.MediaMaxSize' field

func CacheGTSMediaSweepFreqFlag added in v0.8.0

func CacheGTSMediaSweepFreqFlag() string

CacheGTSMediaSweepFreqFlag returns the flag name for the 'Cache.GTS.MediaSweepFreq' field

func CacheGTSMediaTTLFlag added in v0.8.0

func CacheGTSMediaTTLFlag() string

CacheGTSMediaTTLFlag returns the flag name for the 'Cache.GTS.MediaTTL' field

func CacheGTSMentionMaxSizeFlag added in v0.7.0

func CacheGTSMentionMaxSizeFlag() string

CacheGTSMentionMaxSizeFlag returns the flag name for the 'Cache.GTS.MentionMaxSize' field

func CacheGTSMentionSweepFreqFlag added in v0.7.0

func CacheGTSMentionSweepFreqFlag() string

CacheGTSMentionSweepFreqFlag returns the flag name for the 'Cache.GTS.MentionSweepFreq' field

func CacheGTSMentionTTLFlag added in v0.7.0

func CacheGTSMentionTTLFlag() string

CacheGTSMentionTTLFlag returns the flag name for the 'Cache.GTS.MentionTTL' field

func CacheGTSNotificationMaxSizeFlag added in v0.7.0

func CacheGTSNotificationMaxSizeFlag() string

CacheGTSNotificationMaxSizeFlag returns the flag name for the 'Cache.GTS.NotificationMaxSize' field

func CacheGTSNotificationSweepFreqFlag added in v0.7.0

func CacheGTSNotificationSweepFreqFlag() string

CacheGTSNotificationSweepFreqFlag returns the flag name for the 'Cache.GTS.NotificationSweepFreq' field

func CacheGTSNotificationTTLFlag added in v0.7.0

func CacheGTSNotificationTTLFlag() string

CacheGTSNotificationTTLFlag returns the flag name for the 'Cache.GTS.NotificationTTL' field

func CacheGTSReportMaxSizeFlag added in v0.7.0

func CacheGTSReportMaxSizeFlag() string

CacheGTSReportMaxSizeFlag returns the flag name for the 'Cache.GTS.ReportMaxSize' field

func CacheGTSReportSweepFreqFlag added in v0.7.0

func CacheGTSReportSweepFreqFlag() string

CacheGTSReportSweepFreqFlag returns the flag name for the 'Cache.GTS.ReportSweepFreq' field

func CacheGTSReportTTLFlag added in v0.7.0

func CacheGTSReportTTLFlag() string

CacheGTSReportTTLFlag returns the flag name for the 'Cache.GTS.ReportTTL' field

func CacheGTSStatusFaveMaxSizeFlag added in v0.8.0

func CacheGTSStatusFaveMaxSizeFlag() string

CacheGTSStatusFaveMaxSizeFlag returns the flag name for the 'Cache.GTS.StatusFaveMaxSize' field

func CacheGTSStatusFaveSweepFreqFlag added in v0.8.0

func CacheGTSStatusFaveSweepFreqFlag() string

CacheGTSStatusFaveSweepFreqFlag returns the flag name for the 'Cache.GTS.StatusFaveSweepFreq' field

func CacheGTSStatusFaveTTLFlag added in v0.8.0

func CacheGTSStatusFaveTTLFlag() string

CacheGTSStatusFaveTTLFlag returns the flag name for the 'Cache.GTS.StatusFaveTTL' field

func CacheGTSStatusMaxSizeFlag added in v0.7.0

func CacheGTSStatusMaxSizeFlag() string

CacheGTSStatusMaxSizeFlag returns the flag name for the 'Cache.GTS.StatusMaxSize' field

func CacheGTSStatusSweepFreqFlag added in v0.7.0

func CacheGTSStatusSweepFreqFlag() string

CacheGTSStatusSweepFreqFlag returns the flag name for the 'Cache.GTS.StatusSweepFreq' field

func CacheGTSStatusTTLFlag added in v0.7.0

func CacheGTSStatusTTLFlag() string

CacheGTSStatusTTLFlag returns the flag name for the 'Cache.GTS.StatusTTL' field

func CacheGTSTombstoneMaxSizeFlag added in v0.7.0

func CacheGTSTombstoneMaxSizeFlag() string

CacheGTSTombstoneMaxSizeFlag returns the flag name for the 'Cache.GTS.TombstoneMaxSize' field

func CacheGTSTombstoneSweepFreqFlag added in v0.7.0

func CacheGTSTombstoneSweepFreqFlag() string

CacheGTSTombstoneSweepFreqFlag returns the flag name for the 'Cache.GTS.TombstoneSweepFreq' field

func CacheGTSTombstoneTTLFlag added in v0.7.0

func CacheGTSTombstoneTTLFlag() string

CacheGTSTombstoneTTLFlag returns the flag name for the 'Cache.GTS.TombstoneTTL' field

func CacheGTSUserMaxSizeFlag added in v0.7.0

func CacheGTSUserMaxSizeFlag() string

CacheGTSUserMaxSizeFlag returns the flag name for the 'Cache.GTS.UserMaxSize' field

func CacheGTSUserSweepFreqFlag added in v0.7.0

func CacheGTSUserSweepFreqFlag() string

CacheGTSUserSweepFreqFlag returns the flag name for the 'Cache.GTS.UserSweepFreq' field

func CacheGTSUserTTLFlag added in v0.7.0

func CacheGTSUserTTLFlag() string

CacheGTSUserTTLFlag returns the flag name for the 'Cache.GTS.UserTTL' field

func CacheGTSWebfingerMaxSizeFlag added in v0.8.0

func CacheGTSWebfingerMaxSizeFlag() string

CacheGTSWebfingerMaxSizeFlag returns the flag name for the 'Cache.GTS.WebfingerMaxSize' field

func CacheGTSWebfingerSweepFreqFlag added in v0.8.0

func CacheGTSWebfingerSweepFreqFlag() string

CacheGTSWebfingerSweepFreqFlag returns the flag name for the 'Cache.GTS.WebfingerSweepFreq' field

func CacheGTSWebfingerTTLFlag added in v0.8.0

func CacheGTSWebfingerTTLFlag() string

CacheGTSWebfingerTTLFlag returns the flag name for the 'Cache.GTS.WebfingerTTL' field

func CacheVisibilityMaxSizeFlag added in v0.8.0

func CacheVisibilityMaxSizeFlag() string

CacheVisibilityMaxSizeFlag returns the flag name for the 'Cache.VisibilityMaxSize' field

func CacheVisibilitySweepFreqFlag added in v0.8.0

func CacheVisibilitySweepFreqFlag() string

CacheVisibilitySweepFreqFlag returns the flag name for the 'Cache.VisibilitySweepFreq' field

func CacheVisibilityTTLFlag added in v0.8.0

func CacheVisibilityTTLFlag() string

CacheVisibilityTTLFlag returns the flag name for the 'Cache.VisibilityTTL' field

func Config

func Config(fn func(cfg *Configuration))

Config provides you safe access to the global configuration.

func ConfigPathFlag added in v0.3.5

func ConfigPathFlag() string

ConfigPathFlag returns the flag name for the 'ConfigPath' field

func DbAddressFlag added in v0.3.5

func DbAddressFlag() string

DbAddressFlag returns the flag name for the 'DbAddress' field

func DbDatabaseFlag added in v0.3.5

func DbDatabaseFlag() string

DbDatabaseFlag returns the flag name for the 'DbDatabase' field

func DbMaxOpenConnsMultiplierFlag added in v0.7.0

func DbMaxOpenConnsMultiplierFlag() string

DbMaxOpenConnsMultiplierFlag returns the flag name for the 'DbMaxOpenConnsMultiplier' field

func DbPasswordFlag added in v0.3.5

func DbPasswordFlag() string

DbPasswordFlag returns the flag name for the 'DbPassword' field

func DbPortFlag added in v0.3.5

func DbPortFlag() string

DbPortFlag returns the flag name for the 'DbPort' field

func DbSqliteBusyTimeoutFlag added in v0.7.0

func DbSqliteBusyTimeoutFlag() string

DbSqliteBusyTimeoutFlag returns the flag name for the 'DbSqliteBusyTimeout' field

func DbSqliteCacheSizeFlag added in v0.7.0

func DbSqliteCacheSizeFlag() string

DbSqliteCacheSizeFlag returns the flag name for the 'DbSqliteCacheSize' field

func DbSqliteJournalModeFlag added in v0.7.0

func DbSqliteJournalModeFlag() string

DbSqliteJournalModeFlag returns the flag name for the 'DbSqliteJournalMode' field

func DbSqliteSynchronousFlag added in v0.7.0

func DbSqliteSynchronousFlag() string

DbSqliteSynchronousFlag returns the flag name for the 'DbSqliteSynchronous' field

func DbTLSCACertFlag added in v0.3.5

func DbTLSCACertFlag() string

DbTLSCACertFlag returns the flag name for the 'DbTLSCACert' field

func DbTLSModeFlag added in v0.3.5

func DbTLSModeFlag() string

DbTLSModeFlag returns the flag name for the 'DbTLSMode' field

func DbTypeFlag added in v0.3.5

func DbTypeFlag() string

DbTypeFlag returns the flag name for the 'DbType' field

func DbUserFlag added in v0.3.5

func DbUserFlag() string

DbUserFlag returns the flag name for the 'DbUser' field

func GetAccountDomain added in v0.3.5

func GetAccountDomain() string

GetAccountDomain safely fetches the value for global configuration 'AccountDomain' field

func GetAccountsAllowCustomCSS added in v0.5.0

func GetAccountsAllowCustomCSS() bool

GetAccountsAllowCustomCSS safely fetches the value for global configuration 'AccountsAllowCustomCSS' field

func GetAccountsApprovalRequired added in v0.3.5

func GetAccountsApprovalRequired() bool

GetAccountsApprovalRequired safely fetches the value for global configuration 'AccountsApprovalRequired' field

func GetAccountsReasonRequired added in v0.3.5

func GetAccountsReasonRequired() bool

GetAccountsReasonRequired safely fetches the value for global configuration 'AccountsReasonRequired' field

func GetAccountsRegistrationOpen added in v0.3.5

func GetAccountsRegistrationOpen() bool

GetAccountsRegistrationOpen safely fetches the value for global configuration 'AccountsRegistrationOpen' field

func GetAdminAccountEmail added in v0.3.5

func GetAdminAccountEmail() string

GetAdminAccountEmail safely fetches the value for global configuration 'AdminAccountEmail' field

func GetAdminAccountPassword added in v0.3.5

func GetAdminAccountPassword() string

GetAdminAccountPassword safely fetches the value for global configuration 'AdminAccountPassword' field

func GetAdminAccountUsername added in v0.3.5

func GetAdminAccountUsername() string

GetAdminAccountUsername safely fetches the value for global configuration 'AdminAccountUsername' field

func GetAdminMediaPruneDryRun added in v0.6.0

func GetAdminMediaPruneDryRun() bool

GetAdminMediaPruneDryRun safely fetches the value for global configuration 'AdminMediaPruneDryRun' field

func GetAdminTransPath added in v0.3.5

func GetAdminTransPath() string

GetAdminTransPath safely fetches the value for global configuration 'AdminTransPath' field

func GetAdvancedCookiesSamesite added in v0.3.5

func GetAdvancedCookiesSamesite() string

GetAdvancedCookiesSamesite safely fetches the value for global configuration 'AdvancedCookiesSamesite' field

func GetAdvancedRateLimitRequests added in v0.6.0

func GetAdvancedRateLimitRequests() int

GetAdvancedRateLimitRequests safely fetches the value for global configuration 'AdvancedRateLimitRequests' field

func GetAdvancedThrottlingMultiplier added in v0.7.0

func GetAdvancedThrottlingMultiplier() int

GetAdvancedThrottlingMultiplier safely fetches the value for global configuration 'AdvancedThrottlingMultiplier' field

func GetAdvancedThrottlingRetryAfter added in v0.7.0

func GetAdvancedThrottlingRetryAfter() time.Duration

GetAdvancedThrottlingRetryAfter safely fetches the value for global configuration 'AdvancedThrottlingRetryAfter' field

func GetApplicationName added in v0.3.5

func GetApplicationName() string

GetApplicationName safely fetches the value for global configuration 'ApplicationName' field

func GetBindAddress added in v0.3.5

func GetBindAddress() string

GetBindAddress safely fetches the value for global configuration 'BindAddress' field

func GetCacheGTSAccountMaxSize added in v0.7.0

func GetCacheGTSAccountMaxSize() int

GetCacheGTSAccountMaxSize safely fetches the value for global configuration 'Cache.GTS.AccountMaxSize' field

func GetCacheGTSAccountSweepFreq added in v0.7.0

func GetCacheGTSAccountSweepFreq() time.Duration

GetCacheGTSAccountSweepFreq safely fetches the value for global configuration 'Cache.GTS.AccountSweepFreq' field

func GetCacheGTSAccountTTL added in v0.7.0

func GetCacheGTSAccountTTL() time.Duration

GetCacheGTSAccountTTL safely fetches the value for global configuration 'Cache.GTS.AccountTTL' field

func GetCacheGTSBlockMaxSize added in v0.7.0

func GetCacheGTSBlockMaxSize() int

GetCacheGTSBlockMaxSize safely fetches the value for global configuration 'Cache.GTS.BlockMaxSize' field

func GetCacheGTSBlockSweepFreq added in v0.7.0

func GetCacheGTSBlockSweepFreq() time.Duration

GetCacheGTSBlockSweepFreq safely fetches the value for global configuration 'Cache.GTS.BlockSweepFreq' field

func GetCacheGTSBlockTTL added in v0.7.0

func GetCacheGTSBlockTTL() time.Duration

GetCacheGTSBlockTTL safely fetches the value for global configuration 'Cache.GTS.BlockTTL' field

func GetCacheGTSDomainBlockMaxSize added in v0.7.0

func GetCacheGTSDomainBlockMaxSize() int

GetCacheGTSDomainBlockMaxSize safely fetches the value for global configuration 'Cache.GTS.DomainBlockMaxSize' field

func GetCacheGTSDomainBlockSweepFreq added in v0.7.0

func GetCacheGTSDomainBlockSweepFreq() time.Duration

GetCacheGTSDomainBlockSweepFreq safely fetches the value for global configuration 'Cache.GTS.DomainBlockSweepFreq' field

func GetCacheGTSDomainBlockTTL added in v0.7.0

func GetCacheGTSDomainBlockTTL() time.Duration

GetCacheGTSDomainBlockTTL safely fetches the value for global configuration 'Cache.GTS.DomainBlockTTL' field

func GetCacheGTSEmojiCategoryMaxSize added in v0.7.0

func GetCacheGTSEmojiCategoryMaxSize() int

GetCacheGTSEmojiCategoryMaxSize safely fetches the value for global configuration 'Cache.GTS.EmojiCategoryMaxSize' field

func GetCacheGTSEmojiCategorySweepFreq added in v0.7.0

func GetCacheGTSEmojiCategorySweepFreq() time.Duration

GetCacheGTSEmojiCategorySweepFreq safely fetches the value for global configuration 'Cache.GTS.EmojiCategorySweepFreq' field

func GetCacheGTSEmojiCategoryTTL added in v0.7.0

func GetCacheGTSEmojiCategoryTTL() time.Duration

GetCacheGTSEmojiCategoryTTL safely fetches the value for global configuration 'Cache.GTS.EmojiCategoryTTL' field

func GetCacheGTSEmojiMaxSize added in v0.7.0

func GetCacheGTSEmojiMaxSize() int

GetCacheGTSEmojiMaxSize safely fetches the value for global configuration 'Cache.GTS.EmojiMaxSize' field

func GetCacheGTSEmojiSweepFreq added in v0.7.0

func GetCacheGTSEmojiSweepFreq() time.Duration

GetCacheGTSEmojiSweepFreq safely fetches the value for global configuration 'Cache.GTS.EmojiSweepFreq' field

func GetCacheGTSEmojiTTL added in v0.7.0

func GetCacheGTSEmojiTTL() time.Duration

GetCacheGTSEmojiTTL safely fetches the value for global configuration 'Cache.GTS.EmojiTTL' field

func GetCacheGTSFollowMaxSize added in v0.8.0

func GetCacheGTSFollowMaxSize() int

GetCacheGTSFollowMaxSize safely fetches the value for global configuration 'Cache.GTS.FollowMaxSize' field

func GetCacheGTSFollowRequestMaxSize added in v0.8.0

func GetCacheGTSFollowRequestMaxSize() int

GetCacheGTSFollowRequestMaxSize safely fetches the value for global configuration 'Cache.GTS.FollowRequestMaxSize' field

func GetCacheGTSFollowRequestSweepFreq added in v0.8.0

func GetCacheGTSFollowRequestSweepFreq() time.Duration

GetCacheGTSFollowRequestSweepFreq safely fetches the value for global configuration 'Cache.GTS.FollowRequestSweepFreq' field

func GetCacheGTSFollowRequestTTL added in v0.8.0

func GetCacheGTSFollowRequestTTL() time.Duration

GetCacheGTSFollowRequestTTL safely fetches the value for global configuration 'Cache.GTS.FollowRequestTTL' field

func GetCacheGTSFollowSweepFreq added in v0.8.0

func GetCacheGTSFollowSweepFreq() time.Duration

GetCacheGTSFollowSweepFreq safely fetches the value for global configuration 'Cache.GTS.FollowSweepFreq' field

func GetCacheGTSFollowTTL added in v0.8.0

func GetCacheGTSFollowTTL() time.Duration

GetCacheGTSFollowTTL safely fetches the value for global configuration 'Cache.GTS.FollowTTL' field

func GetCacheGTSMediaMaxSize added in v0.8.0

func GetCacheGTSMediaMaxSize() int

GetCacheGTSMediaMaxSize safely fetches the value for global configuration 'Cache.GTS.MediaMaxSize' field

func GetCacheGTSMediaSweepFreq added in v0.8.0

func GetCacheGTSMediaSweepFreq() time.Duration

GetCacheGTSMediaSweepFreq safely fetches the value for global configuration 'Cache.GTS.MediaSweepFreq' field

func GetCacheGTSMediaTTL added in v0.8.0

func GetCacheGTSMediaTTL() time.Duration

GetCacheGTSMediaTTL safely fetches the value for global configuration 'Cache.GTS.MediaTTL' field

func GetCacheGTSMentionMaxSize added in v0.7.0

func GetCacheGTSMentionMaxSize() int

GetCacheGTSMentionMaxSize safely fetches the value for global configuration 'Cache.GTS.MentionMaxSize' field

func GetCacheGTSMentionSweepFreq added in v0.7.0

func GetCacheGTSMentionSweepFreq() time.Duration

GetCacheGTSMentionSweepFreq safely fetches the value for global configuration 'Cache.GTS.MentionSweepFreq' field

func GetCacheGTSMentionTTL added in v0.7.0

func GetCacheGTSMentionTTL() time.Duration

GetCacheGTSMentionTTL safely fetches the value for global configuration 'Cache.GTS.MentionTTL' field

func GetCacheGTSNotificationMaxSize added in v0.7.0

func GetCacheGTSNotificationMaxSize() int

GetCacheGTSNotificationMaxSize safely fetches the value for global configuration 'Cache.GTS.NotificationMaxSize' field

func GetCacheGTSNotificationSweepFreq added in v0.7.0

func GetCacheGTSNotificationSweepFreq() time.Duration

GetCacheGTSNotificationSweepFreq safely fetches the value for global configuration 'Cache.GTS.NotificationSweepFreq' field

func GetCacheGTSNotificationTTL added in v0.7.0

func GetCacheGTSNotificationTTL() time.Duration

GetCacheGTSNotificationTTL safely fetches the value for global configuration 'Cache.GTS.NotificationTTL' field

func GetCacheGTSReportMaxSize added in v0.7.0

func GetCacheGTSReportMaxSize() int

GetCacheGTSReportMaxSize safely fetches the value for global configuration 'Cache.GTS.ReportMaxSize' field

func GetCacheGTSReportSweepFreq added in v0.7.0

func GetCacheGTSReportSweepFreq() time.Duration

GetCacheGTSReportSweepFreq safely fetches the value for global configuration 'Cache.GTS.ReportSweepFreq' field

func GetCacheGTSReportTTL added in v0.7.0

func GetCacheGTSReportTTL() time.Duration

GetCacheGTSReportTTL safely fetches the value for global configuration 'Cache.GTS.ReportTTL' field

func GetCacheGTSStatusFaveMaxSize added in v0.8.0

func GetCacheGTSStatusFaveMaxSize() int

GetCacheGTSStatusFaveMaxSize safely fetches the value for global configuration 'Cache.GTS.StatusFaveMaxSize' field

func GetCacheGTSStatusFaveSweepFreq added in v0.8.0

func GetCacheGTSStatusFaveSweepFreq() time.Duration

GetCacheGTSStatusFaveSweepFreq safely fetches the value for global configuration 'Cache.GTS.StatusFaveSweepFreq' field

func GetCacheGTSStatusFaveTTL added in v0.8.0

func GetCacheGTSStatusFaveTTL() time.Duration

GetCacheGTSStatusFaveTTL safely fetches the value for global configuration 'Cache.GTS.StatusFaveTTL' field

func GetCacheGTSStatusMaxSize added in v0.7.0

func GetCacheGTSStatusMaxSize() int

GetCacheGTSStatusMaxSize safely fetches the value for global configuration 'Cache.GTS.StatusMaxSize' field

func GetCacheGTSStatusSweepFreq added in v0.7.0

func GetCacheGTSStatusSweepFreq() time.Duration

GetCacheGTSStatusSweepFreq safely fetches the value for global configuration 'Cache.GTS.StatusSweepFreq' field

func GetCacheGTSStatusTTL added in v0.7.0

func GetCacheGTSStatusTTL() time.Duration

GetCacheGTSStatusTTL safely fetches the value for global configuration 'Cache.GTS.StatusTTL' field

func GetCacheGTSTombstoneMaxSize added in v0.7.0

func GetCacheGTSTombstoneMaxSize() int

GetCacheGTSTombstoneMaxSize safely fetches the value for global configuration 'Cache.GTS.TombstoneMaxSize' field

func GetCacheGTSTombstoneSweepFreq added in v0.7.0

func GetCacheGTSTombstoneSweepFreq() time.Duration

GetCacheGTSTombstoneSweepFreq safely fetches the value for global configuration 'Cache.GTS.TombstoneSweepFreq' field

func GetCacheGTSTombstoneTTL added in v0.7.0

func GetCacheGTSTombstoneTTL() time.Duration

GetCacheGTSTombstoneTTL safely fetches the value for global configuration 'Cache.GTS.TombstoneTTL' field

func GetCacheGTSUserMaxSize added in v0.7.0

func GetCacheGTSUserMaxSize() int

GetCacheGTSUserMaxSize safely fetches the value for global configuration 'Cache.GTS.UserMaxSize' field

func GetCacheGTSUserSweepFreq added in v0.7.0

func GetCacheGTSUserSweepFreq() time.Duration

GetCacheGTSUserSweepFreq safely fetches the value for global configuration 'Cache.GTS.UserSweepFreq' field

func GetCacheGTSUserTTL added in v0.7.0

func GetCacheGTSUserTTL() time.Duration

GetCacheGTSUserTTL safely fetches the value for global configuration 'Cache.GTS.UserTTL' field

func GetCacheGTSWebfingerMaxSize added in v0.8.0

func GetCacheGTSWebfingerMaxSize() int

GetCacheGTSWebfingerMaxSize safely fetches the value for global configuration 'Cache.GTS.WebfingerMaxSize' field

func GetCacheGTSWebfingerSweepFreq added in v0.8.0

func GetCacheGTSWebfingerSweepFreq() time.Duration

GetCacheGTSWebfingerSweepFreq safely fetches the value for global configuration 'Cache.GTS.WebfingerSweepFreq' field

func GetCacheGTSWebfingerTTL added in v0.8.0

func GetCacheGTSWebfingerTTL() time.Duration

GetCacheGTSWebfingerTTL safely fetches the value for global configuration 'Cache.GTS.WebfingerTTL' field

func GetCacheVisibilityMaxSize added in v0.8.0

func GetCacheVisibilityMaxSize() int

GetCacheVisibilityMaxSize safely fetches the value for global configuration 'Cache.VisibilityMaxSize' field

func GetCacheVisibilitySweepFreq added in v0.8.0

func GetCacheVisibilitySweepFreq() time.Duration

GetCacheVisibilitySweepFreq safely fetches the value for global configuration 'Cache.VisibilitySweepFreq' field

func GetCacheVisibilityTTL added in v0.8.0

func GetCacheVisibilityTTL() time.Duration

GetCacheVisibilityTTL safely fetches the value for global configuration 'Cache.VisibilityTTL' field

func GetConfigPath added in v0.3.5

func GetConfigPath() string

GetConfigPath safely fetches the value for global configuration 'ConfigPath' field

func GetDbAddress added in v0.3.5

func GetDbAddress() string

GetDbAddress safely fetches the value for global configuration 'DbAddress' field

func GetDbDatabase added in v0.3.5

func GetDbDatabase() string

GetDbDatabase safely fetches the value for global configuration 'DbDatabase' field

func GetDbMaxOpenConnsMultiplier added in v0.7.0

func GetDbMaxOpenConnsMultiplier() int

GetDbMaxOpenConnsMultiplier safely fetches the value for global configuration 'DbMaxOpenConnsMultiplier' field

func GetDbPassword added in v0.3.5

func GetDbPassword() string

GetDbPassword safely fetches the value for global configuration 'DbPassword' field

func GetDbPort added in v0.3.5

func GetDbPort() int

GetDbPort safely fetches the value for global configuration 'DbPort' field

func GetDbSqliteBusyTimeout added in v0.7.0

func GetDbSqliteBusyTimeout() time.Duration

GetDbSqliteBusyTimeout safely fetches the value for global configuration 'DbSqliteBusyTimeout' field

func GetDbSqliteCacheSize added in v0.7.0

func GetDbSqliteCacheSize() bytesize.Size

GetDbSqliteCacheSize safely fetches the value for global configuration 'DbSqliteCacheSize' field

func GetDbSqliteJournalMode added in v0.7.0

func GetDbSqliteJournalMode() string

GetDbSqliteJournalMode safely fetches the value for global configuration 'DbSqliteJournalMode' field

func GetDbSqliteSynchronous added in v0.7.0

func GetDbSqliteSynchronous() string

GetDbSqliteSynchronous safely fetches the value for global configuration 'DbSqliteSynchronous' field

func GetDbTLSCACert added in v0.3.5

func GetDbTLSCACert() string

GetDbTLSCACert safely fetches the value for global configuration 'DbTLSCACert' field

func GetDbTLSMode added in v0.3.5

func GetDbTLSMode() string

GetDbTLSMode safely fetches the value for global configuration 'DbTLSMode' field

func GetDbType added in v0.3.5

func GetDbType() string

GetDbType safely fetches the value for global configuration 'DbType' field

func GetDbUser added in v0.3.5

func GetDbUser() string

GetDbUser safely fetches the value for global configuration 'DbUser' field

func GetHost added in v0.3.5

func GetHost() string

GetHost safely fetches the value for global configuration 'Host' field

func GetInstanceDeliverToSharedInboxes added in v0.5.0

func GetInstanceDeliverToSharedInboxes() bool

GetInstanceDeliverToSharedInboxes safely fetches the value for global configuration 'InstanceDeliverToSharedInboxes' field

func GetInstanceExposePeers added in v0.3.7

func GetInstanceExposePeers() bool

GetInstanceExposePeers safely fetches the value for global configuration 'InstanceExposePeers' field

func GetInstanceExposePublicTimeline added in v0.6.0

func GetInstanceExposePublicTimeline() bool

GetInstanceExposePublicTimeline safely fetches the value for global configuration 'InstanceExposePublicTimeline' field

func GetInstanceExposeSuspended added in v0.3.7

func GetInstanceExposeSuspended() bool

GetInstanceExposeSuspended safely fetches the value for global configuration 'InstanceExposeSuspended' field

func GetInstanceExposeSuspendedWeb added in v0.7.0

func GetInstanceExposeSuspendedWeb() bool

GetInstanceExposeSuspendedWeb safely fetches the value for global configuration 'InstanceExposeSuspendedWeb' field

func GetLandingPageUser added in v0.6.0

func GetLandingPageUser() string

GetLandingPageUser safely fetches the value for global configuration 'LandingPageUser' field

func GetLetsEncryptCertDir added in v0.3.5

func GetLetsEncryptCertDir() string

GetLetsEncryptCertDir safely fetches the value for global configuration 'LetsEncryptCertDir' field

func GetLetsEncryptEmailAddress added in v0.3.5

func GetLetsEncryptEmailAddress() string

GetLetsEncryptEmailAddress safely fetches the value for global configuration 'LetsEncryptEmailAddress' field

func GetLetsEncryptEnabled added in v0.3.5

func GetLetsEncryptEnabled() bool

GetLetsEncryptEnabled safely fetches the value for global configuration 'LetsEncryptEnabled' field

func GetLetsEncryptPort added in v0.3.5

func GetLetsEncryptPort() int

GetLetsEncryptPort safely fetches the value for global configuration 'LetsEncryptPort' field

func GetLogDbQueries added in v0.3.5

func GetLogDbQueries() bool

GetLogDbQueries safely fetches the value for global configuration 'LogDbQueries' field

func GetLogLevel added in v0.3.5

func GetLogLevel() string

GetLogLevel safely fetches the value for global configuration 'LogLevel' field

func GetMediaDescriptionMaxChars added in v0.3.5

func GetMediaDescriptionMaxChars() int

GetMediaDescriptionMaxChars safely fetches the value for global configuration 'MediaDescriptionMaxChars' field

func GetMediaDescriptionMinChars added in v0.3.5

func GetMediaDescriptionMinChars() int

GetMediaDescriptionMinChars safely fetches the value for global configuration 'MediaDescriptionMinChars' field

func GetMediaEmojiLocalMaxSize added in v0.5.0

func GetMediaEmojiLocalMaxSize() bytesize.Size

GetMediaEmojiLocalMaxSize safely fetches the value for global configuration 'MediaEmojiLocalMaxSize' field

func GetMediaEmojiRemoteMaxSize added in v0.5.0

func GetMediaEmojiRemoteMaxSize() bytesize.Size

GetMediaEmojiRemoteMaxSize safely fetches the value for global configuration 'MediaEmojiRemoteMaxSize' field

func GetMediaImageMaxSize added in v0.3.5

func GetMediaImageMaxSize() bytesize.Size

GetMediaImageMaxSize safely fetches the value for global configuration 'MediaImageMaxSize' field

func GetMediaRemoteCacheDays added in v0.3.5

func GetMediaRemoteCacheDays() int

GetMediaRemoteCacheDays safely fetches the value for global configuration 'MediaRemoteCacheDays' field

func GetMediaVideoMaxSize added in v0.3.5

func GetMediaVideoMaxSize() bytesize.Size

GetMediaVideoMaxSize safely fetches the value for global configuration 'MediaVideoMaxSize' field

func GetOIDCAdminGroups added in v0.8.0

func GetOIDCAdminGroups() []string

GetOIDCAdminGroups safely fetches the value for global configuration 'OIDCAdminGroups' field

func GetOIDCClientID added in v0.3.5

func GetOIDCClientID() string

GetOIDCClientID safely fetches the value for global configuration 'OIDCClientID' field

func GetOIDCClientSecret added in v0.3.5

func GetOIDCClientSecret() string

GetOIDCClientSecret safely fetches the value for global configuration 'OIDCClientSecret' field

func GetOIDCEnabled added in v0.3.5

func GetOIDCEnabled() bool

GetOIDCEnabled safely fetches the value for global configuration 'OIDCEnabled' field

func GetOIDCIdpName added in v0.3.5

func GetOIDCIdpName() string

GetOIDCIdpName safely fetches the value for global configuration 'OIDCIdpName' field

func GetOIDCIssuer added in v0.3.5

func GetOIDCIssuer() string

GetOIDCIssuer safely fetches the value for global configuration 'OIDCIssuer' field

func GetOIDCLinkExisting added in v0.7.0

func GetOIDCLinkExisting() bool

GetOIDCLinkExisting safely fetches the value for global configuration 'OIDCLinkExisting' field

func GetOIDCScopes added in v0.3.5

func GetOIDCScopes() []string

GetOIDCScopes safely fetches the value for global configuration 'OIDCScopes' field

func GetOIDCSkipVerification added in v0.3.5

func GetOIDCSkipVerification() bool

GetOIDCSkipVerification safely fetches the value for global configuration 'OIDCSkipVerification' field

func GetPort added in v0.3.5

func GetPort() int

GetPort safely fetches the value for global configuration 'Port' field

func GetProtocol added in v0.3.5

func GetProtocol() string

GetProtocol safely fetches the value for global configuration 'Protocol' field

func GetRequestIDHeader added in v0.7.1

func GetRequestIDHeader() string

GetRequestIDHeader safely fetches the value for global configuration 'RequestIDHeader' field

func GetSMTPDiscloseRecipients added in v0.8.0

func GetSMTPDiscloseRecipients() bool

GetSMTPDiscloseRecipients safely fetches the value for global configuration 'SMTPDiscloseRecipients' field

func GetSMTPFrom added in v0.3.5

func GetSMTPFrom() string

GetSMTPFrom safely fetches the value for global configuration 'SMTPFrom' field

func GetSMTPHost added in v0.3.5

func GetSMTPHost() string

GetSMTPHost safely fetches the value for global configuration 'SMTPHost' field

func GetSMTPPassword added in v0.3.5

func GetSMTPPassword() string

GetSMTPPassword safely fetches the value for global configuration 'SMTPPassword' field

func GetSMTPPort added in v0.3.5

func GetSMTPPort() int

GetSMTPPort safely fetches the value for global configuration 'SMTPPort' field

func GetSMTPUsername added in v0.3.5

func GetSMTPUsername() string

GetSMTPUsername safely fetches the value for global configuration 'SMTPUsername' field

func GetSoftwareVersion added in v0.3.5

func GetSoftwareVersion() string

GetSoftwareVersion safely fetches the value for global configuration 'SoftwareVersion' field

func GetStatusesCWMaxChars added in v0.3.5

func GetStatusesCWMaxChars() int

GetStatusesCWMaxChars safely fetches the value for global configuration 'StatusesCWMaxChars' field

func GetStatusesMaxChars added in v0.3.5

func GetStatusesMaxChars() int

GetStatusesMaxChars safely fetches the value for global configuration 'StatusesMaxChars' field

func GetStatusesMediaMaxFiles added in v0.3.5

func GetStatusesMediaMaxFiles() int

GetStatusesMediaMaxFiles safely fetches the value for global configuration 'StatusesMediaMaxFiles' field

func GetStatusesPollMaxOptions added in v0.3.5

func GetStatusesPollMaxOptions() int

GetStatusesPollMaxOptions safely fetches the value for global configuration 'StatusesPollMaxOptions' field

func GetStatusesPollOptionMaxChars added in v0.3.5

func GetStatusesPollOptionMaxChars() int

GetStatusesPollOptionMaxChars safely fetches the value for global configuration 'StatusesPollOptionMaxChars' field

func GetStorageBackend added in v0.3.5

func GetStorageBackend() string

GetStorageBackend safely fetches the value for global configuration 'StorageBackend' field

func GetStorageLocalBasePath added in v0.3.5

func GetStorageLocalBasePath() string

GetStorageLocalBasePath safely fetches the value for global configuration 'StorageLocalBasePath' field

func GetStorageS3AccessKey added in v0.3.7

func GetStorageS3AccessKey() string

GetStorageS3AccessKey safely fetches the value for global configuration 'StorageS3AccessKey' field

func GetStorageS3BucketName added in v0.3.7

func GetStorageS3BucketName() string

GetStorageS3BucketName safely fetches the value for global configuration 'StorageS3BucketName' field

func GetStorageS3Endpoint added in v0.3.7

func GetStorageS3Endpoint() string

GetStorageS3Endpoint safely fetches the value for global configuration 'StorageS3Endpoint' field

func GetStorageS3Proxy added in v0.6.0

func GetStorageS3Proxy() bool

GetStorageS3Proxy safely fetches the value for global configuration 'StorageS3Proxy' field

func GetStorageS3SecretKey added in v0.3.7

func GetStorageS3SecretKey() string

GetStorageS3SecretKey safely fetches the value for global configuration 'StorageS3SecretKey' field

func GetStorageS3UseSSL added in v0.3.7

func GetStorageS3UseSSL() bool

GetStorageS3UseSSL safely fetches the value for global configuration 'StorageS3UseSSL' field

func GetSyslogAddress added in v0.3.5

func GetSyslogAddress() string

GetSyslogAddress safely fetches the value for global configuration 'SyslogAddress' field

func GetSyslogEnabled added in v0.3.5

func GetSyslogEnabled() bool

GetSyslogEnabled safely fetches the value for global configuration 'SyslogEnabled' field

func GetSyslogProtocol added in v0.3.5

func GetSyslogProtocol() string

GetSyslogProtocol safely fetches the value for global configuration 'SyslogProtocol' field

func GetTLSCertificateChain added in v0.8.0

func GetTLSCertificateChain() string

GetTLSCertificateChain safely fetches the value for global configuration 'TLSCertificateChain' field

func GetTLSCertificateKey added in v0.8.0

func GetTLSCertificateKey() string

GetTLSCertificateKey safely fetches the value for global configuration 'TLSCertificateKey' field

func GetTrustedProxies added in v0.3.5

func GetTrustedProxies() []string

GetTrustedProxies safely fetches the value for global configuration 'TrustedProxies' field

func GetWebAssetBaseDir added in v0.3.5

func GetWebAssetBaseDir() string

GetWebAssetBaseDir safely fetches the value for global configuration 'WebAssetBaseDir' field

func GetWebTemplateBaseDir added in v0.3.5

func GetWebTemplateBaseDir() string

GetWebTemplateBaseDir safely fetches the value for global configuration 'WebTemplateBaseDir' field

func HostFlag added in v0.3.5

func HostFlag() string

HostFlag returns the flag name for the 'Host' field

func InstanceDeliverToSharedInboxesFlag added in v0.5.0

func InstanceDeliverToSharedInboxesFlag() string

InstanceDeliverToSharedInboxesFlag returns the flag name for the 'InstanceDeliverToSharedInboxes' field

func InstanceExposePeersFlag added in v0.3.7

func InstanceExposePeersFlag() string

InstanceExposePeersFlag returns the flag name for the 'InstanceExposePeers' field

func InstanceExposePublicTimelineFlag added in v0.6.0

func InstanceExposePublicTimelineFlag() string

InstanceExposePublicTimelineFlag returns the flag name for the 'InstanceExposePublicTimeline' field

func InstanceExposeSuspendedFlag added in v0.3.7

func InstanceExposeSuspendedFlag() string

InstanceExposeSuspendedFlag returns the flag name for the 'InstanceExposeSuspended' field

func InstanceExposeSuspendedWebFlag added in v0.7.0

func InstanceExposeSuspendedWebFlag() string

InstanceExposeSuspendedWebFlag returns the flag name for the 'InstanceExposeSuspendedWeb' field

func LandingPageUserFlag added in v0.6.0

func LandingPageUserFlag() string

LandingPageUserFlag returns the flag name for the 'LandingPageUser' field

func LetsEncryptCertDirFlag added in v0.3.5

func LetsEncryptCertDirFlag() string

LetsEncryptCertDirFlag returns the flag name for the 'LetsEncryptCertDir' field

func LetsEncryptEmailAddressFlag added in v0.3.5

func LetsEncryptEmailAddressFlag() string

LetsEncryptEmailAddressFlag returns the flag name for the 'LetsEncryptEmailAddress' field

func LetsEncryptEnabledFlag added in v0.3.5

func LetsEncryptEnabledFlag() string

LetsEncryptEnabledFlag returns the flag name for the 'LetsEncryptEnabled' field

func LetsEncryptPortFlag added in v0.3.5

func LetsEncryptPortFlag() string

LetsEncryptPortFlag returns the flag name for the 'LetsEncryptPort' field

func LoadEarlyFlags added in v0.3.5

func LoadEarlyFlags(cmd *cobra.Command) error

LoadEarlyFlags will bind specific flags from given Cobra command to global viper instance, and load the current configuration values. This is useful for flags like .ConfigPath which have to parsed first in order to perform early configuration load.

func LogDbQueriesFlag added in v0.3.5

func LogDbQueriesFlag() string

LogDbQueriesFlag returns the flag name for the 'LogDbQueries' field

func LogLevelFlag added in v0.3.5

func LogLevelFlag() string

LogLevelFlag returns the flag name for the 'LogLevel' field

func MediaDescriptionMaxCharsFlag added in v0.3.5

func MediaDescriptionMaxCharsFlag() string

MediaDescriptionMaxCharsFlag returns the flag name for the 'MediaDescriptionMaxChars' field

func MediaDescriptionMinCharsFlag added in v0.3.5

func MediaDescriptionMinCharsFlag() string

MediaDescriptionMinCharsFlag returns the flag name for the 'MediaDescriptionMinChars' field

func MediaEmojiLocalMaxSizeFlag added in v0.5.0

func MediaEmojiLocalMaxSizeFlag() string

MediaEmojiLocalMaxSizeFlag returns the flag name for the 'MediaEmojiLocalMaxSize' field

func MediaEmojiRemoteMaxSizeFlag added in v0.5.0

func MediaEmojiRemoteMaxSizeFlag() string

MediaEmojiRemoteMaxSizeFlag returns the flag name for the 'MediaEmojiRemoteMaxSize' field

func MediaImageMaxSizeFlag added in v0.3.5

func MediaImageMaxSizeFlag() string

MediaImageMaxSizeFlag returns the flag name for the 'MediaImageMaxSize' field

func MediaRemoteCacheDaysFlag added in v0.3.5

func MediaRemoteCacheDaysFlag() string

MediaRemoteCacheDaysFlag returns the flag name for the 'MediaRemoteCacheDays' field

func MediaVideoMaxSizeFlag added in v0.3.5

func MediaVideoMaxSizeFlag() string

MediaVideoMaxSizeFlag returns the flag name for the 'MediaVideoMaxSize' field

func OIDCAdminGroupsFlag added in v0.8.0

func OIDCAdminGroupsFlag() string

OIDCAdminGroupsFlag returns the flag name for the 'OIDCAdminGroups' field

func OIDCClientIDFlag added in v0.3.5

func OIDCClientIDFlag() string

OIDCClientIDFlag returns the flag name for the 'OIDCClientID' field

func OIDCClientSecretFlag added in v0.3.5

func OIDCClientSecretFlag() string

OIDCClientSecretFlag returns the flag name for the 'OIDCClientSecret' field

func OIDCEnabledFlag added in v0.3.5

func OIDCEnabledFlag() string

OIDCEnabledFlag returns the flag name for the 'OIDCEnabled' field

func OIDCIdpNameFlag added in v0.3.5

func OIDCIdpNameFlag() string

OIDCIdpNameFlag returns the flag name for the 'OIDCIdpName' field

func OIDCIssuerFlag added in v0.3.5

func OIDCIssuerFlag() string

OIDCIssuerFlag returns the flag name for the 'OIDCIssuer' field

func OIDCLinkExistingFlag added in v0.7.0

func OIDCLinkExistingFlag() string

OIDCLinkExistingFlag returns the flag name for the 'OIDCLinkExisting' field

func OIDCScopesFlag added in v0.3.5

func OIDCScopesFlag() string

OIDCScopesFlag returns the flag name for the 'OIDCScopes' field

func OIDCSkipVerificationFlag added in v0.3.5

func OIDCSkipVerificationFlag() string

OIDCSkipVerificationFlag returns the flag name for the 'OIDCSkipVerification' field

func PortFlag added in v0.3.5

func PortFlag() string

PortFlag returns the flag name for the 'Port' field

func ProtocolFlag added in v0.3.5

func ProtocolFlag() string

ProtocolFlag returns the flag name for the 'Protocol' field

func Reload added in v0.3.5

func Reload() error

Reload will reload the current configuration values from file.

func RequestIDHeaderFlag added in v0.7.1

func RequestIDHeaderFlag() string

RequestIDHeaderFlag returns the flag name for the 'RequestIDHeader' field

func SMTPDiscloseRecipientsFlag added in v0.8.0

func SMTPDiscloseRecipientsFlag() string

SMTPDiscloseRecipientsFlag returns the flag name for the 'SMTPDiscloseRecipients' field

func SMTPFromFlag added in v0.3.5

func SMTPFromFlag() string

SMTPFromFlag returns the flag name for the 'SMTPFrom' field

func SMTPHostFlag added in v0.3.5

func SMTPHostFlag() string

SMTPHostFlag returns the flag name for the 'SMTPHost' field

func SMTPPasswordFlag added in v0.3.5

func SMTPPasswordFlag() string

SMTPPasswordFlag returns the flag name for the 'SMTPPassword' field

func SMTPPortFlag added in v0.3.5

func SMTPPortFlag() string

SMTPPortFlag returns the flag name for the 'SMTPPort' field

func SMTPUsernameFlag added in v0.3.5

func SMTPUsernameFlag() string

SMTPUsernameFlag returns the flag name for the 'SMTPUsername' field

func SetAccountDomain added in v0.3.5

func SetAccountDomain(v string)

SetAccountDomain safely sets the value for global configuration 'AccountDomain' field

func SetAccountsAllowCustomCSS added in v0.5.0

func SetAccountsAllowCustomCSS(v bool)

SetAccountsAllowCustomCSS safely sets the value for global configuration 'AccountsAllowCustomCSS' field

func SetAccountsApprovalRequired added in v0.3.5

func SetAccountsApprovalRequired(v bool)

SetAccountsApprovalRequired safely sets the value for global configuration 'AccountsApprovalRequired' field

func SetAccountsReasonRequired added in v0.3.5

func SetAccountsReasonRequired(v bool)

SetAccountsReasonRequired safely sets the value for global configuration 'AccountsReasonRequired' field

func SetAccountsRegistrationOpen added in v0.3.5

func SetAccountsRegistrationOpen(v bool)

SetAccountsRegistrationOpen safely sets the value for global configuration 'AccountsRegistrationOpen' field

func SetAdminAccountEmail added in v0.3.5

func SetAdminAccountEmail(v string)

SetAdminAccountEmail safely sets the value for global configuration 'AdminAccountEmail' field

func SetAdminAccountPassword added in v0.3.5

func SetAdminAccountPassword(v string)

SetAdminAccountPassword safely sets the value for global configuration 'AdminAccountPassword' field

func SetAdminAccountUsername added in v0.3.5

func SetAdminAccountUsername(v string)

SetAdminAccountUsername safely sets the value for global configuration 'AdminAccountUsername' field

func SetAdminMediaPruneDryRun added in v0.6.0

func SetAdminMediaPruneDryRun(v bool)

SetAdminMediaPruneDryRun safely sets the value for global configuration 'AdminMediaPruneDryRun' field

func SetAdminTransPath added in v0.3.5

func SetAdminTransPath(v string)

SetAdminTransPath safely sets the value for global configuration 'AdminTransPath' field

func SetAdvancedCookiesSamesite added in v0.3.5

func SetAdvancedCookiesSamesite(v string)

SetAdvancedCookiesSamesite safely sets the value for global configuration 'AdvancedCookiesSamesite' field

func SetAdvancedRateLimitRequests added in v0.6.0

func SetAdvancedRateLimitRequests(v int)

SetAdvancedRateLimitRequests safely sets the value for global configuration 'AdvancedRateLimitRequests' field

func SetAdvancedThrottlingMultiplier added in v0.7.0

func SetAdvancedThrottlingMultiplier(v int)

SetAdvancedThrottlingMultiplier safely sets the value for global configuration 'AdvancedThrottlingMultiplier' field

func SetAdvancedThrottlingRetryAfter added in v0.7.0

func SetAdvancedThrottlingRetryAfter(v time.Duration)

SetAdvancedThrottlingRetryAfter safely sets the value for global configuration 'AdvancedThrottlingRetryAfter' field

func SetApplicationName added in v0.3.5

func SetApplicationName(v string)

SetApplicationName safely sets the value for global configuration 'ApplicationName' field

func SetBindAddress added in v0.3.5

func SetBindAddress(v string)

SetBindAddress safely sets the value for global configuration 'BindAddress' field

func SetCacheGTSAccountMaxSize added in v0.7.0

func SetCacheGTSAccountMaxSize(v int)

SetCacheGTSAccountMaxSize safely sets the value for global configuration 'Cache.GTS.AccountMaxSize' field

func SetCacheGTSAccountSweepFreq added in v0.7.0

func SetCacheGTSAccountSweepFreq(v time.Duration)

SetCacheGTSAccountSweepFreq safely sets the value for global configuration 'Cache.GTS.AccountSweepFreq' field

func SetCacheGTSAccountTTL added in v0.7.0

func SetCacheGTSAccountTTL(v time.Duration)

SetCacheGTSAccountTTL safely sets the value for global configuration 'Cache.GTS.AccountTTL' field

func SetCacheGTSBlockMaxSize added in v0.7.0

func SetCacheGTSBlockMaxSize(v int)

SetCacheGTSBlockMaxSize safely sets the value for global configuration 'Cache.GTS.BlockMaxSize' field

func SetCacheGTSBlockSweepFreq added in v0.7.0

func SetCacheGTSBlockSweepFreq(v time.Duration)

SetCacheGTSBlockSweepFreq safely sets the value for global configuration 'Cache.GTS.BlockSweepFreq' field

func SetCacheGTSBlockTTL added in v0.7.0

func SetCacheGTSBlockTTL(v time.Duration)

SetCacheGTSBlockTTL safely sets the value for global configuration 'Cache.GTS.BlockTTL' field

func SetCacheGTSDomainBlockMaxSize added in v0.7.0

func SetCacheGTSDomainBlockMaxSize(v int)

SetCacheGTSDomainBlockMaxSize safely sets the value for global configuration 'Cache.GTS.DomainBlockMaxSize' field

func SetCacheGTSDomainBlockSweepFreq added in v0.7.0

func SetCacheGTSDomainBlockSweepFreq(v time.Duration)

SetCacheGTSDomainBlockSweepFreq safely sets the value for global configuration 'Cache.GTS.DomainBlockSweepFreq' field

func SetCacheGTSDomainBlockTTL added in v0.7.0

func SetCacheGTSDomainBlockTTL(v time.Duration)

SetCacheGTSDomainBlockTTL safely sets the value for global configuration 'Cache.GTS.DomainBlockTTL' field

func SetCacheGTSEmojiCategoryMaxSize added in v0.7.0

func SetCacheGTSEmojiCategoryMaxSize(v int)

SetCacheGTSEmojiCategoryMaxSize safely sets the value for global configuration 'Cache.GTS.EmojiCategoryMaxSize' field

func SetCacheGTSEmojiCategorySweepFreq added in v0.7.0

func SetCacheGTSEmojiCategorySweepFreq(v time.Duration)

SetCacheGTSEmojiCategorySweepFreq safely sets the value for global configuration 'Cache.GTS.EmojiCategorySweepFreq' field

func SetCacheGTSEmojiCategoryTTL added in v0.7.0

func SetCacheGTSEmojiCategoryTTL(v time.Duration)

SetCacheGTSEmojiCategoryTTL safely sets the value for global configuration 'Cache.GTS.EmojiCategoryTTL' field

func SetCacheGTSEmojiMaxSize added in v0.7.0

func SetCacheGTSEmojiMaxSize(v int)

SetCacheGTSEmojiMaxSize safely sets the value for global configuration 'Cache.GTS.EmojiMaxSize' field

func SetCacheGTSEmojiSweepFreq added in v0.7.0

func SetCacheGTSEmojiSweepFreq(v time.Duration)

SetCacheGTSEmojiSweepFreq safely sets the value for global configuration 'Cache.GTS.EmojiSweepFreq' field

func SetCacheGTSEmojiTTL added in v0.7.0

func SetCacheGTSEmojiTTL(v time.Duration)

SetCacheGTSEmojiTTL safely sets the value for global configuration 'Cache.GTS.EmojiTTL' field

func SetCacheGTSFollowMaxSize added in v0.8.0

func SetCacheGTSFollowMaxSize(v int)

SetCacheGTSFollowMaxSize safely sets the value for global configuration 'Cache.GTS.FollowMaxSize' field

func SetCacheGTSFollowRequestMaxSize added in v0.8.0

func SetCacheGTSFollowRequestMaxSize(v int)

SetCacheGTSFollowRequestMaxSize safely sets the value for global configuration 'Cache.GTS.FollowRequestMaxSize' field

func SetCacheGTSFollowRequestSweepFreq added in v0.8.0

func SetCacheGTSFollowRequestSweepFreq(v time.Duration)

SetCacheGTSFollowRequestSweepFreq safely sets the value for global configuration 'Cache.GTS.FollowRequestSweepFreq' field

func SetCacheGTSFollowRequestTTL added in v0.8.0

func SetCacheGTSFollowRequestTTL(v time.Duration)

SetCacheGTSFollowRequestTTL safely sets the value for global configuration 'Cache.GTS.FollowRequestTTL' field

func SetCacheGTSFollowSweepFreq added in v0.8.0

func SetCacheGTSFollowSweepFreq(v time.Duration)

SetCacheGTSFollowSweepFreq safely sets the value for global configuration 'Cache.GTS.FollowSweepFreq' field

func SetCacheGTSFollowTTL added in v0.8.0

func SetCacheGTSFollowTTL(v time.Duration)

SetCacheGTSFollowTTL safely sets the value for global configuration 'Cache.GTS.FollowTTL' field

func SetCacheGTSMediaMaxSize added in v0.8.0

func SetCacheGTSMediaMaxSize(v int)

SetCacheGTSMediaMaxSize safely sets the value for global configuration 'Cache.GTS.MediaMaxSize' field

func SetCacheGTSMediaSweepFreq added in v0.8.0

func SetCacheGTSMediaSweepFreq(v time.Duration)

SetCacheGTSMediaSweepFreq safely sets the value for global configuration 'Cache.GTS.MediaSweepFreq' field

func SetCacheGTSMediaTTL added in v0.8.0

func SetCacheGTSMediaTTL(v time.Duration)

SetCacheGTSMediaTTL safely sets the value for global configuration 'Cache.GTS.MediaTTL' field

func SetCacheGTSMentionMaxSize added in v0.7.0

func SetCacheGTSMentionMaxSize(v int)

SetCacheGTSMentionMaxSize safely sets the value for global configuration 'Cache.GTS.MentionMaxSize' field

func SetCacheGTSMentionSweepFreq added in v0.7.0

func SetCacheGTSMentionSweepFreq(v time.Duration)

SetCacheGTSMentionSweepFreq safely sets the value for global configuration 'Cache.GTS.MentionSweepFreq' field

func SetCacheGTSMentionTTL added in v0.7.0

func SetCacheGTSMentionTTL(v time.Duration)

SetCacheGTSMentionTTL safely sets the value for global configuration 'Cache.GTS.MentionTTL' field

func SetCacheGTSNotificationMaxSize added in v0.7.0

func SetCacheGTSNotificationMaxSize(v int)

SetCacheGTSNotificationMaxSize safely sets the value for global configuration 'Cache.GTS.NotificationMaxSize' field

func SetCacheGTSNotificationSweepFreq added in v0.7.0

func SetCacheGTSNotificationSweepFreq(v time.Duration)

SetCacheGTSNotificationSweepFreq safely sets the value for global configuration 'Cache.GTS.NotificationSweepFreq' field

func SetCacheGTSNotificationTTL added in v0.7.0

func SetCacheGTSNotificationTTL(v time.Duration)

SetCacheGTSNotificationTTL safely sets the value for global configuration 'Cache.GTS.NotificationTTL' field

func SetCacheGTSReportMaxSize added in v0.7.0

func SetCacheGTSReportMaxSize(v int)

SetCacheGTSReportMaxSize safely sets the value for global configuration 'Cache.GTS.ReportMaxSize' field

func SetCacheGTSReportSweepFreq added in v0.7.0

func SetCacheGTSReportSweepFreq(v time.Duration)

SetCacheGTSReportSweepFreq safely sets the value for global configuration 'Cache.GTS.ReportSweepFreq' field

func SetCacheGTSReportTTL added in v0.7.0

func SetCacheGTSReportTTL(v time.Duration)

SetCacheGTSReportTTL safely sets the value for global configuration 'Cache.GTS.ReportTTL' field

func SetCacheGTSStatusFaveMaxSize added in v0.8.0

func SetCacheGTSStatusFaveMaxSize(v int)

SetCacheGTSStatusFaveMaxSize safely sets the value for global configuration 'Cache.GTS.StatusFaveMaxSize' field

func SetCacheGTSStatusFaveSweepFreq added in v0.8.0

func SetCacheGTSStatusFaveSweepFreq(v time.Duration)

SetCacheGTSStatusFaveSweepFreq safely sets the value for global configuration 'Cache.GTS.StatusFaveSweepFreq' field

func SetCacheGTSStatusFaveTTL added in v0.8.0

func SetCacheGTSStatusFaveTTL(v time.Duration)

SetCacheGTSStatusFaveTTL safely sets the value for global configuration 'Cache.GTS.StatusFaveTTL' field

func SetCacheGTSStatusMaxSize added in v0.7.0

func SetCacheGTSStatusMaxSize(v int)

SetCacheGTSStatusMaxSize safely sets the value for global configuration 'Cache.GTS.StatusMaxSize' field

func SetCacheGTSStatusSweepFreq added in v0.7.0

func SetCacheGTSStatusSweepFreq(v time.Duration)

SetCacheGTSStatusSweepFreq safely sets the value for global configuration 'Cache.GTS.StatusSweepFreq' field

func SetCacheGTSStatusTTL added in v0.7.0

func SetCacheGTSStatusTTL(v time.Duration)

SetCacheGTSStatusTTL safely sets the value for global configuration 'Cache.GTS.StatusTTL' field

func SetCacheGTSTombstoneMaxSize added in v0.7.0

func SetCacheGTSTombstoneMaxSize(v int)

SetCacheGTSTombstoneMaxSize safely sets the value for global configuration 'Cache.GTS.TombstoneMaxSize' field

func SetCacheGTSTombstoneSweepFreq added in v0.7.0

func SetCacheGTSTombstoneSweepFreq(v time.Duration)

SetCacheGTSTombstoneSweepFreq safely sets the value for global configuration 'Cache.GTS.TombstoneSweepFreq' field

func SetCacheGTSTombstoneTTL added in v0.7.0

func SetCacheGTSTombstoneTTL(v time.Duration)

SetCacheGTSTombstoneTTL safely sets the value for global configuration 'Cache.GTS.TombstoneTTL' field

func SetCacheGTSUserMaxSize added in v0.7.0

func SetCacheGTSUserMaxSize(v int)

SetCacheGTSUserMaxSize safely sets the value for global configuration 'Cache.GTS.UserMaxSize' field

func SetCacheGTSUserSweepFreq added in v0.7.0

func SetCacheGTSUserSweepFreq(v time.Duration)

SetCacheGTSUserSweepFreq safely sets the value for global configuration 'Cache.GTS.UserSweepFreq' field

func SetCacheGTSUserTTL added in v0.7.0

func SetCacheGTSUserTTL(v time.Duration)

SetCacheGTSUserTTL safely sets the value for global configuration 'Cache.GTS.UserTTL' field

func SetCacheGTSWebfingerMaxSize added in v0.8.0

func SetCacheGTSWebfingerMaxSize(v int)

SetCacheGTSWebfingerMaxSize safely sets the value for global configuration 'Cache.GTS.WebfingerMaxSize' field

func SetCacheGTSWebfingerSweepFreq added in v0.8.0

func SetCacheGTSWebfingerSweepFreq(v time.Duration)

SetCacheGTSWebfingerSweepFreq safely sets the value for global configuration 'Cache.GTS.WebfingerSweepFreq' field

func SetCacheGTSWebfingerTTL added in v0.8.0

func SetCacheGTSWebfingerTTL(v time.Duration)

SetCacheGTSWebfingerTTL safely sets the value for global configuration 'Cache.GTS.WebfingerTTL' field

func SetCacheVisibilityMaxSize added in v0.8.0

func SetCacheVisibilityMaxSize(v int)

SetCacheVisibilityMaxSize safely sets the value for global configuration 'Cache.VisibilityMaxSize' field

func SetCacheVisibilitySweepFreq added in v0.8.0

func SetCacheVisibilitySweepFreq(v time.Duration)

SetCacheVisibilitySweepFreq safely sets the value for global configuration 'Cache.VisibilitySweepFreq' field

func SetCacheVisibilityTTL added in v0.8.0

func SetCacheVisibilityTTL(v time.Duration)

SetCacheVisibilityTTL safely sets the value for global configuration 'Cache.VisibilityTTL' field

func SetConfigPath added in v0.3.5

func SetConfigPath(v string)

SetConfigPath safely sets the value for global configuration 'ConfigPath' field

func SetDbAddress added in v0.3.5

func SetDbAddress(v string)

SetDbAddress safely sets the value for global configuration 'DbAddress' field

func SetDbDatabase added in v0.3.5

func SetDbDatabase(v string)

SetDbDatabase safely sets the value for global configuration 'DbDatabase' field

func SetDbMaxOpenConnsMultiplier added in v0.7.0

func SetDbMaxOpenConnsMultiplier(v int)

SetDbMaxOpenConnsMultiplier safely sets the value for global configuration 'DbMaxOpenConnsMultiplier' field

func SetDbPassword added in v0.3.5

func SetDbPassword(v string)

SetDbPassword safely sets the value for global configuration 'DbPassword' field

func SetDbPort added in v0.3.5

func SetDbPort(v int)

SetDbPort safely sets the value for global configuration 'DbPort' field

func SetDbSqliteBusyTimeout added in v0.7.0

func SetDbSqliteBusyTimeout(v time.Duration)

SetDbSqliteBusyTimeout safely sets the value for global configuration 'DbSqliteBusyTimeout' field

func SetDbSqliteCacheSize added in v0.7.0

func SetDbSqliteCacheSize(v bytesize.Size)

SetDbSqliteCacheSize safely sets the value for global configuration 'DbSqliteCacheSize' field

func SetDbSqliteJournalMode added in v0.7.0

func SetDbSqliteJournalMode(v string)

SetDbSqliteJournalMode safely sets the value for global configuration 'DbSqliteJournalMode' field

func SetDbSqliteSynchronous added in v0.7.0

func SetDbSqliteSynchronous(v string)

SetDbSqliteSynchronous safely sets the value for global configuration 'DbSqliteSynchronous' field

func SetDbTLSCACert added in v0.3.5

func SetDbTLSCACert(v string)

SetDbTLSCACert safely sets the value for global configuration 'DbTLSCACert' field

func SetDbTLSMode added in v0.3.5

func SetDbTLSMode(v string)

SetDbTLSMode safely sets the value for global configuration 'DbTLSMode' field

func SetDbType added in v0.3.5

func SetDbType(v string)

SetDbType safely sets the value for global configuration 'DbType' field

func SetDbUser added in v0.3.5

func SetDbUser(v string)

SetDbUser safely sets the value for global configuration 'DbUser' field

func SetHost added in v0.3.5

func SetHost(v string)

SetHost safely sets the value for global configuration 'Host' field

func SetInstanceDeliverToSharedInboxes added in v0.5.0

func SetInstanceDeliverToSharedInboxes(v bool)

SetInstanceDeliverToSharedInboxes safely sets the value for global configuration 'InstanceDeliverToSharedInboxes' field

func SetInstanceExposePeers added in v0.3.7

func SetInstanceExposePeers(v bool)

SetInstanceExposePeers safely sets the value for global configuration 'InstanceExposePeers' field

func SetInstanceExposePublicTimeline added in v0.6.0

func SetInstanceExposePublicTimeline(v bool)

SetInstanceExposePublicTimeline safely sets the value for global configuration 'InstanceExposePublicTimeline' field

func SetInstanceExposeSuspended added in v0.3.7

func SetInstanceExposeSuspended(v bool)

SetInstanceExposeSuspended safely sets the value for global configuration 'InstanceExposeSuspended' field

func SetInstanceExposeSuspendedWeb added in v0.7.0

func SetInstanceExposeSuspendedWeb(v bool)

SetInstanceExposeSuspendedWeb safely sets the value for global configuration 'InstanceExposeSuspendedWeb' field

func SetLandingPageUser added in v0.6.0

func SetLandingPageUser(v string)

SetLandingPageUser safely sets the value for global configuration 'LandingPageUser' field

func SetLetsEncryptCertDir added in v0.3.5

func SetLetsEncryptCertDir(v string)

SetLetsEncryptCertDir safely sets the value for global configuration 'LetsEncryptCertDir' field

func SetLetsEncryptEmailAddress added in v0.3.5

func SetLetsEncryptEmailAddress(v string)

SetLetsEncryptEmailAddress safely sets the value for global configuration 'LetsEncryptEmailAddress' field

func SetLetsEncryptEnabled added in v0.3.5

func SetLetsEncryptEnabled(v bool)

SetLetsEncryptEnabled safely sets the value for global configuration 'LetsEncryptEnabled' field

func SetLetsEncryptPort added in v0.3.5

func SetLetsEncryptPort(v int)

SetLetsEncryptPort safely sets the value for global configuration 'LetsEncryptPort' field

func SetLogDbQueries added in v0.3.5

func SetLogDbQueries(v bool)

SetLogDbQueries safely sets the value for global configuration 'LogDbQueries' field

func SetLogLevel added in v0.3.5

func SetLogLevel(v string)

SetLogLevel safely sets the value for global configuration 'LogLevel' field

func SetMediaDescriptionMaxChars added in v0.3.5

func SetMediaDescriptionMaxChars(v int)

SetMediaDescriptionMaxChars safely sets the value for global configuration 'MediaDescriptionMaxChars' field

func SetMediaDescriptionMinChars added in v0.3.5

func SetMediaDescriptionMinChars(v int)

SetMediaDescriptionMinChars safely sets the value for global configuration 'MediaDescriptionMinChars' field

func SetMediaEmojiLocalMaxSize added in v0.5.0

func SetMediaEmojiLocalMaxSize(v bytesize.Size)

SetMediaEmojiLocalMaxSize safely sets the value for global configuration 'MediaEmojiLocalMaxSize' field

func SetMediaEmojiRemoteMaxSize added in v0.5.0

func SetMediaEmojiRemoteMaxSize(v bytesize.Size)

SetMediaEmojiRemoteMaxSize safely sets the value for global configuration 'MediaEmojiRemoteMaxSize' field

func SetMediaImageMaxSize added in v0.3.5

func SetMediaImageMaxSize(v bytesize.Size)

SetMediaImageMaxSize safely sets the value for global configuration 'MediaImageMaxSize' field

func SetMediaRemoteCacheDays added in v0.3.5

func SetMediaRemoteCacheDays(v int)

SetMediaRemoteCacheDays safely sets the value for global configuration 'MediaRemoteCacheDays' field

func SetMediaVideoMaxSize added in v0.3.5

func SetMediaVideoMaxSize(v bytesize.Size)

SetMediaVideoMaxSize safely sets the value for global configuration 'MediaVideoMaxSize' field

func SetOIDCAdminGroups added in v0.8.0

func SetOIDCAdminGroups(v []string)

SetOIDCAdminGroups safely sets the value for global configuration 'OIDCAdminGroups' field

func SetOIDCClientID added in v0.3.5

func SetOIDCClientID(v string)

SetOIDCClientID safely sets the value for global configuration 'OIDCClientID' field

func SetOIDCClientSecret added in v0.3.5

func SetOIDCClientSecret(v string)

SetOIDCClientSecret safely sets the value for global configuration 'OIDCClientSecret' field

func SetOIDCEnabled added in v0.3.5

func SetOIDCEnabled(v bool)

SetOIDCEnabled safely sets the value for global configuration 'OIDCEnabled' field

func SetOIDCIdpName added in v0.3.5

func SetOIDCIdpName(v string)

SetOIDCIdpName safely sets the value for global configuration 'OIDCIdpName' field

func SetOIDCIssuer added in v0.3.5

func SetOIDCIssuer(v string)

SetOIDCIssuer safely sets the value for global configuration 'OIDCIssuer' field

func SetOIDCLinkExisting added in v0.7.0

func SetOIDCLinkExisting(v bool)

SetOIDCLinkExisting safely sets the value for global configuration 'OIDCLinkExisting' field

func SetOIDCScopes added in v0.3.5

func SetOIDCScopes(v []string)

SetOIDCScopes safely sets the value for global configuration 'OIDCScopes' field

func SetOIDCSkipVerification added in v0.3.5

func SetOIDCSkipVerification(v bool)

SetOIDCSkipVerification safely sets the value for global configuration 'OIDCSkipVerification' field

func SetPort added in v0.3.5

func SetPort(v int)

SetPort safely sets the value for global configuration 'Port' field

func SetProtocol added in v0.3.5

func SetProtocol(v string)

SetProtocol safely sets the value for global configuration 'Protocol' field

func SetRequestIDHeader added in v0.7.1

func SetRequestIDHeader(v string)

SetRequestIDHeader safely sets the value for global configuration 'RequestIDHeader' field

func SetSMTPDiscloseRecipients added in v0.8.0

func SetSMTPDiscloseRecipients(v bool)

SetSMTPDiscloseRecipients safely sets the value for global configuration 'SMTPDiscloseRecipients' field

func SetSMTPFrom added in v0.3.5

func SetSMTPFrom(v string)

SetSMTPFrom safely sets the value for global configuration 'SMTPFrom' field

func SetSMTPHost added in v0.3.5

func SetSMTPHost(v string)

SetSMTPHost safely sets the value for global configuration 'SMTPHost' field

func SetSMTPPassword added in v0.3.5

func SetSMTPPassword(v string)

SetSMTPPassword safely sets the value for global configuration 'SMTPPassword' field

func SetSMTPPort added in v0.3.5

func SetSMTPPort(v int)

SetSMTPPort safely sets the value for global configuration 'SMTPPort' field

func SetSMTPUsername added in v0.3.5

func SetSMTPUsername(v string)

SetSMTPUsername safely sets the value for global configuration 'SMTPUsername' field

func SetSoftwareVersion added in v0.3.5

func SetSoftwareVersion(v string)

SetSoftwareVersion safely sets the value for global configuration 'SoftwareVersion' field

func SetStatusesCWMaxChars added in v0.3.5

func SetStatusesCWMaxChars(v int)

SetStatusesCWMaxChars safely sets the value for global configuration 'StatusesCWMaxChars' field

func SetStatusesMaxChars added in v0.3.5

func SetStatusesMaxChars(v int)

SetStatusesMaxChars safely sets the value for global configuration 'StatusesMaxChars' field

func SetStatusesMediaMaxFiles added in v0.3.5

func SetStatusesMediaMaxFiles(v int)

SetStatusesMediaMaxFiles safely sets the value for global configuration 'StatusesMediaMaxFiles' field

func SetStatusesPollMaxOptions added in v0.3.5

func SetStatusesPollMaxOptions(v int)

SetStatusesPollMaxOptions safely sets the value for global configuration 'StatusesPollMaxOptions' field

func SetStatusesPollOptionMaxChars added in v0.3.5

func SetStatusesPollOptionMaxChars(v int)

SetStatusesPollOptionMaxChars safely sets the value for global configuration 'StatusesPollOptionMaxChars' field

func SetStorageBackend added in v0.3.5

func SetStorageBackend(v string)

SetStorageBackend safely sets the value for global configuration 'StorageBackend' field

func SetStorageLocalBasePath added in v0.3.5

func SetStorageLocalBasePath(v string)

SetStorageLocalBasePath safely sets the value for global configuration 'StorageLocalBasePath' field

func SetStorageS3AccessKey added in v0.3.7

func SetStorageS3AccessKey(v string)

SetStorageS3AccessKey safely sets the value for global configuration 'StorageS3AccessKey' field

func SetStorageS3BucketName added in v0.3.7

func SetStorageS3BucketName(v string)

SetStorageS3BucketName safely sets the value for global configuration 'StorageS3BucketName' field

func SetStorageS3Endpoint added in v0.3.7

func SetStorageS3Endpoint(v string)

SetStorageS3Endpoint safely sets the value for global configuration 'StorageS3Endpoint' field

func SetStorageS3Proxy added in v0.6.0

func SetStorageS3Proxy(v bool)

SetStorageS3Proxy safely sets the value for global configuration 'StorageS3Proxy' field

func SetStorageS3SecretKey added in v0.3.7

func SetStorageS3SecretKey(v string)

SetStorageS3SecretKey safely sets the value for global configuration 'StorageS3SecretKey' field

func SetStorageS3UseSSL added in v0.3.7

func SetStorageS3UseSSL(v bool)

SetStorageS3UseSSL safely sets the value for global configuration 'StorageS3UseSSL' field

func SetSyslogAddress added in v0.3.5

func SetSyslogAddress(v string)

SetSyslogAddress safely sets the value for global configuration 'SyslogAddress' field

func SetSyslogEnabled added in v0.3.5

func SetSyslogEnabled(v bool)

SetSyslogEnabled safely sets the value for global configuration 'SyslogEnabled' field

func SetSyslogProtocol added in v0.3.5

func SetSyslogProtocol(v string)

SetSyslogProtocol safely sets the value for global configuration 'SyslogProtocol' field

func SetTLSCertificateChain added in v0.8.0

func SetTLSCertificateChain(v string)

SetTLSCertificateChain safely sets the value for global configuration 'TLSCertificateChain' field

func SetTLSCertificateKey added in v0.8.0

func SetTLSCertificateKey(v string)

SetTLSCertificateKey safely sets the value for global configuration 'TLSCertificateKey' field

func SetTrustedProxies added in v0.3.5

func SetTrustedProxies(v []string)

SetTrustedProxies safely sets the value for global configuration 'TrustedProxies' field

func SetWebAssetBaseDir added in v0.3.5

func SetWebAssetBaseDir(v string)

SetWebAssetBaseDir safely sets the value for global configuration 'WebAssetBaseDir' field

func SetWebTemplateBaseDir added in v0.3.5

func SetWebTemplateBaseDir(v string)

SetWebTemplateBaseDir safely sets the value for global configuration 'WebTemplateBaseDir' field

func SoftwareVersionFlag added in v0.3.5

func SoftwareVersionFlag() string

SoftwareVersionFlag returns the flag name for the 'SoftwareVersion' field

func StatusesCWMaxCharsFlag added in v0.3.5

func StatusesCWMaxCharsFlag() string

StatusesCWMaxCharsFlag returns the flag name for the 'StatusesCWMaxChars' field

func StatusesMaxCharsFlag added in v0.3.5

func StatusesMaxCharsFlag() string

StatusesMaxCharsFlag returns the flag name for the 'StatusesMaxChars' field

func StatusesMediaMaxFilesFlag added in v0.3.5

func StatusesMediaMaxFilesFlag() string

StatusesMediaMaxFilesFlag returns the flag name for the 'StatusesMediaMaxFiles' field

func StatusesPollMaxOptionsFlag added in v0.3.5

func StatusesPollMaxOptionsFlag() string

StatusesPollMaxOptionsFlag returns the flag name for the 'StatusesPollMaxOptions' field

func StatusesPollOptionMaxCharsFlag added in v0.3.5

func StatusesPollOptionMaxCharsFlag() string

StatusesPollOptionMaxCharsFlag returns the flag name for the 'StatusesPollOptionMaxChars' field

func StorageBackendFlag added in v0.3.5

func StorageBackendFlag() string

StorageBackendFlag returns the flag name for the 'StorageBackend' field

func StorageLocalBasePathFlag added in v0.3.5

func StorageLocalBasePathFlag() string

StorageLocalBasePathFlag returns the flag name for the 'StorageLocalBasePath' field

func StorageS3AccessKeyFlag added in v0.3.7

func StorageS3AccessKeyFlag() string

StorageS3AccessKeyFlag returns the flag name for the 'StorageS3AccessKey' field

func StorageS3BucketNameFlag added in v0.3.7

func StorageS3BucketNameFlag() string

StorageS3BucketNameFlag returns the flag name for the 'StorageS3BucketName' field

func StorageS3EndpointFlag added in v0.3.7

func StorageS3EndpointFlag() string

StorageS3EndpointFlag returns the flag name for the 'StorageS3Endpoint' field

func StorageS3ProxyFlag added in v0.6.0

func StorageS3ProxyFlag() string

StorageS3ProxyFlag returns the flag name for the 'StorageS3Proxy' field

func StorageS3SecretKeyFlag added in v0.3.7

func StorageS3SecretKeyFlag() string

StorageS3SecretKeyFlag returns the flag name for the 'StorageS3SecretKey' field

func StorageS3UseSSLFlag added in v0.3.7

func StorageS3UseSSLFlag() string

StorageS3UseSSLFlag returns the flag name for the 'StorageS3UseSSL' field

func SyslogAddressFlag added in v0.3.5

func SyslogAddressFlag() string

SyslogAddressFlag returns the flag name for the 'SyslogAddress' field

func SyslogEnabledFlag added in v0.3.5

func SyslogEnabledFlag() string

SyslogEnabledFlag returns the flag name for the 'SyslogEnabled' field

func SyslogProtocolFlag added in v0.3.5

func SyslogProtocolFlag() string

SyslogProtocolFlag returns the flag name for the 'SyslogProtocol' field

func TLSCertificateChainFlag added in v0.8.0

func TLSCertificateChainFlag() string

TLSCertificateChainFlag returns the flag name for the 'TLSCertificateChain' field

func TLSCertificateKeyFlag added in v0.8.0

func TLSCertificateKeyFlag() string

TLSCertificateKeyFlag returns the flag name for the 'TLSCertificateKey' field

func TrustedProxiesFlag added in v0.3.5

func TrustedProxiesFlag() string

TrustedProxiesFlag returns the flag name for the 'TrustedProxies' field

func Validate added in v0.3.4

func Validate() error

Validate validates global config settings which don't have defaults, to make sure they are set sensibly.

func WebAssetBaseDirFlag added in v0.3.5

func WebAssetBaseDirFlag() string

WebAssetBaseDirFlag returns the flag name for the 'WebAssetBaseDir' field

func WebTemplateBaseDirFlag added in v0.3.5

func WebTemplateBaseDirFlag() string

WebTemplateBaseDirFlag returns the flag name for the 'WebTemplateBaseDir' field

Types

type CacheConfiguration added in v0.7.0

type CacheConfiguration struct {
	GTS GTSCacheConfiguration `name:"gts"`

	VisibilityMaxSize   int           `name:"visibility-max-size"`
	VisibilityTTL       time.Duration `name:"visibility-ttl"`
	VisibilitySweepFreq time.Duration `name:"visibility-sweep-freq"`
}

type ConfigState added in v0.3.5

type ConfigState struct {
	// contains filtered or unexported fields
}

ConfigState manages safe concurrent access to Configuration{} values, and provides ease of linking them (including reloading) via viper to environment, CLI and configuration file variables.

func NewState added in v0.3.5

func NewState() *ConfigState

NewState returns a new initialized ConfigState instance.

func (*ConfigState) AddGlobalFlags added in v0.6.0

func (s *ConfigState) AddGlobalFlags(cmd *cobra.Command)

AddGlobalFlags will attach global configuration flags to given cobra command, loading defaults from State.

func (*ConfigState) AddServerFlags added in v0.6.0

func (s *ConfigState) AddServerFlags(cmd *cobra.Command)

AddServerFlags will attach server configuration flags to given cobra command, loading defaults from State.

func (*ConfigState) BindFlags added in v0.3.5

func (st *ConfigState) BindFlags(cmd *cobra.Command) (err error)

BindFlags will bind given Cobra command's pflags to this ConfigState's viper instance.

func (*ConfigState) Config added in v0.3.5

func (st *ConfigState) Config(fn func(*Configuration))

Config provides safe access to the ConfigState's contained Configuration, and will reload the current Configuration back into viper settings.

func (*ConfigState) GetAccountDomain added in v0.3.5

func (st *ConfigState) GetAccountDomain() (v string)

GetAccountDomain safely fetches the Configuration value for state's 'AccountDomain' field

func (*ConfigState) GetAccountsAllowCustomCSS added in v0.5.0

func (st *ConfigState) GetAccountsAllowCustomCSS() (v bool)

GetAccountsAllowCustomCSS safely fetches the Configuration value for state's 'AccountsAllowCustomCSS' field

func (*ConfigState) GetAccountsApprovalRequired added in v0.3.5

func (st *ConfigState) GetAccountsApprovalRequired() (v bool)

GetAccountsApprovalRequired safely fetches the Configuration value for state's 'AccountsApprovalRequired' field

func (*ConfigState) GetAccountsReasonRequired added in v0.3.5

func (st *ConfigState) GetAccountsReasonRequired() (v bool)

GetAccountsReasonRequired safely fetches the Configuration value for state's 'AccountsReasonRequired' field

func (*ConfigState) GetAccountsRegistrationOpen added in v0.3.5

func (st *ConfigState) GetAccountsRegistrationOpen() (v bool)

GetAccountsRegistrationOpen safely fetches the Configuration value for state's 'AccountsRegistrationOpen' field

func (*ConfigState) GetAdminAccountEmail added in v0.3.5

func (st *ConfigState) GetAdminAccountEmail() (v string)

GetAdminAccountEmail safely fetches the Configuration value for state's 'AdminAccountEmail' field

func (*ConfigState) GetAdminAccountPassword added in v0.3.5

func (st *ConfigState) GetAdminAccountPassword() (v string)

GetAdminAccountPassword safely fetches the Configuration value for state's 'AdminAccountPassword' field

func (*ConfigState) GetAdminAccountUsername added in v0.3.5

func (st *ConfigState) GetAdminAccountUsername() (v string)

GetAdminAccountUsername safely fetches the Configuration value for state's 'AdminAccountUsername' field

func (*ConfigState) GetAdminMediaPruneDryRun added in v0.6.0

func (st *ConfigState) GetAdminMediaPruneDryRun() (v bool)

GetAdminMediaPruneDryRun safely fetches the Configuration value for state's 'AdminMediaPruneDryRun' field

func (*ConfigState) GetAdminTransPath added in v0.3.5

func (st *ConfigState) GetAdminTransPath() (v string)

GetAdminTransPath safely fetches the Configuration value for state's 'AdminTransPath' field

func (*ConfigState) GetAdvancedCookiesSamesite added in v0.3.5

func (st *ConfigState) GetAdvancedCookiesSamesite() (v string)

GetAdvancedCookiesSamesite safely fetches the Configuration value for state's 'AdvancedCookiesSamesite' field

func (*ConfigState) GetAdvancedRateLimitRequests added in v0.6.0

func (st *ConfigState) GetAdvancedRateLimitRequests() (v int)

GetAdvancedRateLimitRequests safely fetches the Configuration value for state's 'AdvancedRateLimitRequests' field

func (*ConfigState) GetAdvancedThrottlingMultiplier added in v0.7.0

func (st *ConfigState) GetAdvancedThrottlingMultiplier() (v int)

GetAdvancedThrottlingMultiplier safely fetches the Configuration value for state's 'AdvancedThrottlingMultiplier' field

func (*ConfigState) GetAdvancedThrottlingRetryAfter added in v0.7.0

func (st *ConfigState) GetAdvancedThrottlingRetryAfter() (v time.Duration)

GetAdvancedThrottlingRetryAfter safely fetches the Configuration value for state's 'AdvancedThrottlingRetryAfter' field

func (*ConfigState) GetApplicationName added in v0.3.5

func (st *ConfigState) GetApplicationName() (v string)

GetApplicationName safely fetches the Configuration value for state's 'ApplicationName' field

func (*ConfigState) GetBindAddress added in v0.3.5

func (st *ConfigState) GetBindAddress() (v string)

GetBindAddress safely fetches the Configuration value for state's 'BindAddress' field

func (*ConfigState) GetCacheGTSAccountMaxSize added in v0.7.0

func (st *ConfigState) GetCacheGTSAccountMaxSize() (v int)

GetCacheGTSAccountMaxSize safely fetches the Configuration value for state's 'Cache.GTS.AccountMaxSize' field

func (*ConfigState) GetCacheGTSAccountSweepFreq added in v0.7.0

func (st *ConfigState) GetCacheGTSAccountSweepFreq() (v time.Duration)

GetCacheGTSAccountSweepFreq safely fetches the Configuration value for state's 'Cache.GTS.AccountSweepFreq' field

func (*ConfigState) GetCacheGTSAccountTTL added in v0.7.0

func (st *ConfigState) GetCacheGTSAccountTTL() (v time.Duration)

GetCacheGTSAccountTTL safely fetches the Configuration value for state's 'Cache.GTS.AccountTTL' field

func (*ConfigState) GetCacheGTSBlockMaxSize added in v0.7.0

func (st *ConfigState) GetCacheGTSBlockMaxSize() (v int)

GetCacheGTSBlockMaxSize safely fetches the Configuration value for state's 'Cache.GTS.BlockMaxSize' field

func (*ConfigState) GetCacheGTSBlockSweepFreq added in v0.7.0

func (st *ConfigState) GetCacheGTSBlockSweepFreq() (v time.Duration)

GetCacheGTSBlockSweepFreq safely fetches the Configuration value for state's 'Cache.GTS.BlockSweepFreq' field

func (*ConfigState) GetCacheGTSBlockTTL added in v0.7.0

func (st *ConfigState) GetCacheGTSBlockTTL() (v time.Duration)

GetCacheGTSBlockTTL safely fetches the Configuration value for state's 'Cache.GTS.BlockTTL' field

func (*ConfigState) GetCacheGTSDomainBlockMaxSize added in v0.7.0

func (st *ConfigState) GetCacheGTSDomainBlockMaxSize() (v int)

GetCacheGTSDomainBlockMaxSize safely fetches the Configuration value for state's 'Cache.GTS.DomainBlockMaxSize' field

func (*ConfigState) GetCacheGTSDomainBlockSweepFreq added in v0.7.0

func (st *ConfigState) GetCacheGTSDomainBlockSweepFreq() (v time.Duration)

GetCacheGTSDomainBlockSweepFreq safely fetches the Configuration value for state's 'Cache.GTS.DomainBlockSweepFreq' field

func (*ConfigState) GetCacheGTSDomainBlockTTL added in v0.7.0

func (st *ConfigState) GetCacheGTSDomainBlockTTL() (v time.Duration)

GetCacheGTSDomainBlockTTL safely fetches the Configuration value for state's 'Cache.GTS.DomainBlockTTL' field

func (*ConfigState) GetCacheGTSEmojiCategoryMaxSize added in v0.7.0

func (st *ConfigState) GetCacheGTSEmojiCategoryMaxSize() (v int)

GetCacheGTSEmojiCategoryMaxSize safely fetches the Configuration value for state's 'Cache.GTS.EmojiCategoryMaxSize' field

func (*ConfigState) GetCacheGTSEmojiCategorySweepFreq added in v0.7.0

func (st *ConfigState) GetCacheGTSEmojiCategorySweepFreq() (v time.Duration)

GetCacheGTSEmojiCategorySweepFreq safely fetches the Configuration value for state's 'Cache.GTS.EmojiCategorySweepFreq' field

func (*ConfigState) GetCacheGTSEmojiCategoryTTL added in v0.7.0

func (st *ConfigState) GetCacheGTSEmojiCategoryTTL() (v time.Duration)

GetCacheGTSEmojiCategoryTTL safely fetches the Configuration value for state's 'Cache.GTS.EmojiCategoryTTL' field

func (*ConfigState) GetCacheGTSEmojiMaxSize added in v0.7.0

func (st *ConfigState) GetCacheGTSEmojiMaxSize() (v int)

GetCacheGTSEmojiMaxSize safely fetches the Configuration value for state's 'Cache.GTS.EmojiMaxSize' field

func (*ConfigState) GetCacheGTSEmojiSweepFreq added in v0.7.0

func (st *ConfigState) GetCacheGTSEmojiSweepFreq() (v time.Duration)

GetCacheGTSEmojiSweepFreq safely fetches the Configuration value for state's 'Cache.GTS.EmojiSweepFreq' field

func (*ConfigState) GetCacheGTSEmojiTTL added in v0.7.0

func (st *ConfigState) GetCacheGTSEmojiTTL() (v time.Duration)

GetCacheGTSEmojiTTL safely fetches the Configuration value for state's 'Cache.GTS.EmojiTTL' field

func (*ConfigState) GetCacheGTSFollowMaxSize added in v0.8.0

func (st *ConfigState) GetCacheGTSFollowMaxSize() (v int)

GetCacheGTSFollowMaxSize safely fetches the Configuration value for state's 'Cache.GTS.FollowMaxSize' field

func (*ConfigState) GetCacheGTSFollowRequestMaxSize added in v0.8.0

func (st *ConfigState) GetCacheGTSFollowRequestMaxSize() (v int)

GetCacheGTSFollowRequestMaxSize safely fetches the Configuration value for state's 'Cache.GTS.FollowRequestMaxSize' field

func (*ConfigState) GetCacheGTSFollowRequestSweepFreq added in v0.8.0

func (st *ConfigState) GetCacheGTSFollowRequestSweepFreq() (v time.Duration)

GetCacheGTSFollowRequestSweepFreq safely fetches the Configuration value for state's 'Cache.GTS.FollowRequestSweepFreq' field

func (*ConfigState) GetCacheGTSFollowRequestTTL added in v0.8.0

func (st *ConfigState) GetCacheGTSFollowRequestTTL() (v time.Duration)

GetCacheGTSFollowRequestTTL safely fetches the Configuration value for state's 'Cache.GTS.FollowRequestTTL' field

func (*ConfigState) GetCacheGTSFollowSweepFreq added in v0.8.0

func (st *ConfigState) GetCacheGTSFollowSweepFreq() (v time.Duration)

GetCacheGTSFollowSweepFreq safely fetches the Configuration value for state's 'Cache.GTS.FollowSweepFreq' field

func (*ConfigState) GetCacheGTSFollowTTL added in v0.8.0

func (st *ConfigState) GetCacheGTSFollowTTL() (v time.Duration)

GetCacheGTSFollowTTL safely fetches the Configuration value for state's 'Cache.GTS.FollowTTL' field

func (*ConfigState) GetCacheGTSMediaMaxSize added in v0.8.0

func (st *ConfigState) GetCacheGTSMediaMaxSize() (v int)

GetCacheGTSMediaMaxSize safely fetches the Configuration value for state's 'Cache.GTS.MediaMaxSize' field

func (*ConfigState) GetCacheGTSMediaSweepFreq added in v0.8.0

func (st *ConfigState) GetCacheGTSMediaSweepFreq() (v time.Duration)

GetCacheGTSMediaSweepFreq safely fetches the Configuration value for state's 'Cache.GTS.MediaSweepFreq' field

func (*ConfigState) GetCacheGTSMediaTTL added in v0.8.0

func (st *ConfigState) GetCacheGTSMediaTTL() (v time.Duration)

GetCacheGTSMediaTTL safely fetches the Configuration value for state's 'Cache.GTS.MediaTTL' field

func (*ConfigState) GetCacheGTSMentionMaxSize added in v0.7.0

func (st *ConfigState) GetCacheGTSMentionMaxSize() (v int)

GetCacheGTSMentionMaxSize safely fetches the Configuration value for state's 'Cache.GTS.MentionMaxSize' field

func (*ConfigState) GetCacheGTSMentionSweepFreq added in v0.7.0

func (st *ConfigState) GetCacheGTSMentionSweepFreq() (v time.Duration)

GetCacheGTSMentionSweepFreq safely fetches the Configuration value for state's 'Cache.GTS.MentionSweepFreq' field

func (*ConfigState) GetCacheGTSMentionTTL added in v0.7.0

func (st *ConfigState) GetCacheGTSMentionTTL() (v time.Duration)

GetCacheGTSMentionTTL safely fetches the Configuration value for state's 'Cache.GTS.MentionTTL' field

func (*ConfigState) GetCacheGTSNotificationMaxSize added in v0.7.0

func (st *ConfigState) GetCacheGTSNotificationMaxSize() (v int)

GetCacheGTSNotificationMaxSize safely fetches the Configuration value for state's 'Cache.GTS.NotificationMaxSize' field

func (*ConfigState) GetCacheGTSNotificationSweepFreq added in v0.7.0

func (st *ConfigState) GetCacheGTSNotificationSweepFreq() (v time.Duration)

GetCacheGTSNotificationSweepFreq safely fetches the Configuration value for state's 'Cache.GTS.NotificationSweepFreq' field

func (*ConfigState) GetCacheGTSNotificationTTL added in v0.7.0

func (st *ConfigState) GetCacheGTSNotificationTTL() (v time.Duration)

GetCacheGTSNotificationTTL safely fetches the Configuration value for state's 'Cache.GTS.NotificationTTL' field

func (*ConfigState) GetCacheGTSReportMaxSize added in v0.7.0

func (st *ConfigState) GetCacheGTSReportMaxSize() (v int)

GetCacheGTSReportMaxSize safely fetches the Configuration value for state's 'Cache.GTS.ReportMaxSize' field

func (*ConfigState) GetCacheGTSReportSweepFreq added in v0.7.0

func (st *ConfigState) GetCacheGTSReportSweepFreq() (v time.Duration)

GetCacheGTSReportSweepFreq safely fetches the Configuration value for state's 'Cache.GTS.ReportSweepFreq' field

func (*ConfigState) GetCacheGTSReportTTL added in v0.7.0

func (st *ConfigState) GetCacheGTSReportTTL() (v time.Duration)

GetCacheGTSReportTTL safely fetches the Configuration value for state's 'Cache.GTS.ReportTTL' field

func (*ConfigState) GetCacheGTSStatusFaveMaxSize added in v0.8.0

func (st *ConfigState) GetCacheGTSStatusFaveMaxSize() (v int)

GetCacheGTSStatusFaveMaxSize safely fetches the Configuration value for state's 'Cache.GTS.StatusFaveMaxSize' field

func (*ConfigState) GetCacheGTSStatusFaveSweepFreq added in v0.8.0

func (st *ConfigState) GetCacheGTSStatusFaveSweepFreq() (v time.Duration)

GetCacheGTSStatusFaveSweepFreq safely fetches the Configuration value for state's 'Cache.GTS.StatusFaveSweepFreq' field

func (*ConfigState) GetCacheGTSStatusFaveTTL added in v0.8.0

func (st *ConfigState) GetCacheGTSStatusFaveTTL() (v time.Duration)

GetCacheGTSStatusFaveTTL safely fetches the Configuration value for state's 'Cache.GTS.StatusFaveTTL' field

func (*ConfigState) GetCacheGTSStatusMaxSize added in v0.7.0

func (st *ConfigState) GetCacheGTSStatusMaxSize() (v int)

GetCacheGTSStatusMaxSize safely fetches the Configuration value for state's 'Cache.GTS.StatusMaxSize' field

func (*ConfigState) GetCacheGTSStatusSweepFreq added in v0.7.0

func (st *ConfigState) GetCacheGTSStatusSweepFreq() (v time.Duration)

GetCacheGTSStatusSweepFreq safely fetches the Configuration value for state's 'Cache.GTS.StatusSweepFreq' field

func (*ConfigState) GetCacheGTSStatusTTL added in v0.7.0

func (st *ConfigState) GetCacheGTSStatusTTL() (v time.Duration)

GetCacheGTSStatusTTL safely fetches the Configuration value for state's 'Cache.GTS.StatusTTL' field

func (*ConfigState) GetCacheGTSTombstoneMaxSize added in v0.7.0

func (st *ConfigState) GetCacheGTSTombstoneMaxSize() (v int)

GetCacheGTSTombstoneMaxSize safely fetches the Configuration value for state's 'Cache.GTS.TombstoneMaxSize' field

func (*ConfigState) GetCacheGTSTombstoneSweepFreq added in v0.7.0

func (st *ConfigState) GetCacheGTSTombstoneSweepFreq() (v time.Duration)

GetCacheGTSTombstoneSweepFreq safely fetches the Configuration value for state's 'Cache.GTS.TombstoneSweepFreq' field

func (*ConfigState) GetCacheGTSTombstoneTTL added in v0.7.0

func (st *ConfigState) GetCacheGTSTombstoneTTL() (v time.Duration)

GetCacheGTSTombstoneTTL safely fetches the Configuration value for state's 'Cache.GTS.TombstoneTTL' field

func (*ConfigState) GetCacheGTSUserMaxSize added in v0.7.0

func (st *ConfigState) GetCacheGTSUserMaxSize() (v int)

GetCacheGTSUserMaxSize safely fetches the Configuration value for state's 'Cache.GTS.UserMaxSize' field

func (*ConfigState) GetCacheGTSUserSweepFreq added in v0.7.0

func (st *ConfigState) GetCacheGTSUserSweepFreq() (v time.Duration)

GetCacheGTSUserSweepFreq safely fetches the Configuration value for state's 'Cache.GTS.UserSweepFreq' field

func (*ConfigState) GetCacheGTSUserTTL added in v0.7.0

func (st *ConfigState) GetCacheGTSUserTTL() (v time.Duration)

GetCacheGTSUserTTL safely fetches the Configuration value for state's 'Cache.GTS.UserTTL' field

func (*ConfigState) GetCacheGTSWebfingerMaxSize added in v0.8.0

func (st *ConfigState) GetCacheGTSWebfingerMaxSize() (v int)

GetCacheGTSWebfingerMaxSize safely fetches the Configuration value for state's 'Cache.GTS.WebfingerMaxSize' field

func (*ConfigState) GetCacheGTSWebfingerSweepFreq added in v0.8.0

func (st *ConfigState) GetCacheGTSWebfingerSweepFreq() (v time.Duration)

GetCacheGTSWebfingerSweepFreq safely fetches the Configuration value for state's 'Cache.GTS.WebfingerSweepFreq' field

func (*ConfigState) GetCacheGTSWebfingerTTL added in v0.8.0

func (st *ConfigState) GetCacheGTSWebfingerTTL() (v time.Duration)

GetCacheGTSWebfingerTTL safely fetches the Configuration value for state's 'Cache.GTS.WebfingerTTL' field

func (*ConfigState) GetCacheVisibilityMaxSize added in v0.8.0

func (st *ConfigState) GetCacheVisibilityMaxSize() (v int)

GetCacheVisibilityMaxSize safely fetches the Configuration value for state's 'Cache.VisibilityMaxSize' field

func (*ConfigState) GetCacheVisibilitySweepFreq added in v0.8.0

func (st *ConfigState) GetCacheVisibilitySweepFreq() (v time.Duration)

GetCacheVisibilitySweepFreq safely fetches the Configuration value for state's 'Cache.VisibilitySweepFreq' field

func (*ConfigState) GetCacheVisibilityTTL added in v0.8.0

func (st *ConfigState) GetCacheVisibilityTTL() (v time.Duration)

GetCacheVisibilityTTL safely fetches the Configuration value for state's 'Cache.VisibilityTTL' field

func (*ConfigState) GetConfigPath added in v0.3.5

func (st *ConfigState) GetConfigPath() (v string)

GetConfigPath safely fetches the Configuration value for state's 'ConfigPath' field

func (*ConfigState) GetDbAddress added in v0.3.5

func (st *ConfigState) GetDbAddress() (v string)

GetDbAddress safely fetches the Configuration value for state's 'DbAddress' field

func (*ConfigState) GetDbDatabase added in v0.3.5

func (st *ConfigState) GetDbDatabase() (v string)

GetDbDatabase safely fetches the Configuration value for state's 'DbDatabase' field

func (*ConfigState) GetDbMaxOpenConnsMultiplier added in v0.7.0

func (st *ConfigState) GetDbMaxOpenConnsMultiplier() (v int)

GetDbMaxOpenConnsMultiplier safely fetches the Configuration value for state's 'DbMaxOpenConnsMultiplier' field

func (*ConfigState) GetDbPassword added in v0.3.5

func (st *ConfigState) GetDbPassword() (v string)

GetDbPassword safely fetches the Configuration value for state's 'DbPassword' field

func (*ConfigState) GetDbPort added in v0.3.5

func (st *ConfigState) GetDbPort() (v int)

GetDbPort safely fetches the Configuration value for state's 'DbPort' field

func (*ConfigState) GetDbSqliteBusyTimeout added in v0.7.0

func (st *ConfigState) GetDbSqliteBusyTimeout() (v time.Duration)

GetDbSqliteBusyTimeout safely fetches the Configuration value for state's 'DbSqliteBusyTimeout' field

func (*ConfigState) GetDbSqliteCacheSize added in v0.7.0

func (st *ConfigState) GetDbSqliteCacheSize() (v bytesize.Size)

GetDbSqliteCacheSize safely fetches the Configuration value for state's 'DbSqliteCacheSize' field

func (*ConfigState) GetDbSqliteJournalMode added in v0.7.0

func (st *ConfigState) GetDbSqliteJournalMode() (v string)

GetDbSqliteJournalMode safely fetches the Configuration value for state's 'DbSqliteJournalMode' field

func (*ConfigState) GetDbSqliteSynchronous added in v0.7.0

func (st *ConfigState) GetDbSqliteSynchronous() (v string)

GetDbSqliteSynchronous safely fetches the Configuration value for state's 'DbSqliteSynchronous' field

func (*ConfigState) GetDbTLSCACert added in v0.3.5

func (st *ConfigState) GetDbTLSCACert() (v string)

GetDbTLSCACert safely fetches the Configuration value for state's 'DbTLSCACert' field

func (*ConfigState) GetDbTLSMode added in v0.3.5

func (st *ConfigState) GetDbTLSMode() (v string)

GetDbTLSMode safely fetches the Configuration value for state's 'DbTLSMode' field

func (*ConfigState) GetDbType added in v0.3.5

func (st *ConfigState) GetDbType() (v string)

GetDbType safely fetches the Configuration value for state's 'DbType' field

func (*ConfigState) GetDbUser added in v0.3.5

func (st *ConfigState) GetDbUser() (v string)

GetDbUser safely fetches the Configuration value for state's 'DbUser' field

func (*ConfigState) GetHost added in v0.3.5

func (st *ConfigState) GetHost() (v string)

GetHost safely fetches the Configuration value for state's 'Host' field

func (*ConfigState) GetInstanceDeliverToSharedInboxes added in v0.5.0

func (st *ConfigState) GetInstanceDeliverToSharedInboxes() (v bool)

GetInstanceDeliverToSharedInboxes safely fetches the Configuration value for state's 'InstanceDeliverToSharedInboxes' field

func (*ConfigState) GetInstanceExposePeers added in v0.3.7

func (st *ConfigState) GetInstanceExposePeers() (v bool)

GetInstanceExposePeers safely fetches the Configuration value for state's 'InstanceExposePeers' field

func (*ConfigState) GetInstanceExposePublicTimeline added in v0.6.0

func (st *ConfigState) GetInstanceExposePublicTimeline() (v bool)

GetInstanceExposePublicTimeline safely fetches the Configuration value for state's 'InstanceExposePublicTimeline' field

func (*ConfigState) GetInstanceExposeSuspended added in v0.3.7

func (st *ConfigState) GetInstanceExposeSuspended() (v bool)

GetInstanceExposeSuspended safely fetches the Configuration value for state's 'InstanceExposeSuspended' field

func (*ConfigState) GetInstanceExposeSuspendedWeb added in v0.7.0

func (st *ConfigState) GetInstanceExposeSuspendedWeb() (v bool)

GetInstanceExposeSuspendedWeb safely fetches the Configuration value for state's 'InstanceExposeSuspendedWeb' field

func (*ConfigState) GetLandingPageUser added in v0.6.0

func (st *ConfigState) GetLandingPageUser() (v string)

GetLandingPageUser safely fetches the Configuration value for state's 'LandingPageUser' field

func (*ConfigState) GetLetsEncryptCertDir added in v0.3.5

func (st *ConfigState) GetLetsEncryptCertDir() (v string)

GetLetsEncryptCertDir safely fetches the Configuration value for state's 'LetsEncryptCertDir' field

func (*ConfigState) GetLetsEncryptEmailAddress added in v0.3.5

func (st *ConfigState) GetLetsEncryptEmailAddress() (v string)

GetLetsEncryptEmailAddress safely fetches the Configuration value for state's 'LetsEncryptEmailAddress' field

func (*ConfigState) GetLetsEncryptEnabled added in v0.3.5

func (st *ConfigState) GetLetsEncryptEnabled() (v bool)

GetLetsEncryptEnabled safely fetches the Configuration value for state's 'LetsEncryptEnabled' field

func (*ConfigState) GetLetsEncryptPort added in v0.3.5

func (st *ConfigState) GetLetsEncryptPort() (v int)

GetLetsEncryptPort safely fetches the Configuration value for state's 'LetsEncryptPort' field

func (*ConfigState) GetLogDbQueries added in v0.3.5

func (st *ConfigState) GetLogDbQueries() (v bool)

GetLogDbQueries safely fetches the Configuration value for state's 'LogDbQueries' field

func (*ConfigState) GetLogLevel added in v0.3.5

func (st *ConfigState) GetLogLevel() (v string)

GetLogLevel safely fetches the Configuration value for state's 'LogLevel' field

func (*ConfigState) GetMediaDescriptionMaxChars added in v0.3.5

func (st *ConfigState) GetMediaDescriptionMaxChars() (v int)

GetMediaDescriptionMaxChars safely fetches the Configuration value for state's 'MediaDescriptionMaxChars' field

func (*ConfigState) GetMediaDescriptionMinChars added in v0.3.5

func (st *ConfigState) GetMediaDescriptionMinChars() (v int)

GetMediaDescriptionMinChars safely fetches the Configuration value for state's 'MediaDescriptionMinChars' field

func (*ConfigState) GetMediaEmojiLocalMaxSize added in v0.5.0

func (st *ConfigState) GetMediaEmojiLocalMaxSize() (v bytesize.Size)

GetMediaEmojiLocalMaxSize safely fetches the Configuration value for state's 'MediaEmojiLocalMaxSize' field

func (*ConfigState) GetMediaEmojiRemoteMaxSize added in v0.5.0

func (st *ConfigState) GetMediaEmojiRemoteMaxSize() (v bytesize.Size)

GetMediaEmojiRemoteMaxSize safely fetches the Configuration value for state's 'MediaEmojiRemoteMaxSize' field

func (*ConfigState) GetMediaImageMaxSize added in v0.3.5

func (st *ConfigState) GetMediaImageMaxSize() (v bytesize.Size)

GetMediaImageMaxSize safely fetches the Configuration value for state's 'MediaImageMaxSize' field

func (*ConfigState) GetMediaRemoteCacheDays added in v0.3.5

func (st *ConfigState) GetMediaRemoteCacheDays() (v int)

GetMediaRemoteCacheDays safely fetches the Configuration value for state's 'MediaRemoteCacheDays' field

func (*ConfigState) GetMediaVideoMaxSize added in v0.3.5

func (st *ConfigState) GetMediaVideoMaxSize() (v bytesize.Size)

GetMediaVideoMaxSize safely fetches the Configuration value for state's 'MediaVideoMaxSize' field

func (*ConfigState) GetOIDCAdminGroups added in v0.8.0

func (st *ConfigState) GetOIDCAdminGroups() (v []string)

GetOIDCAdminGroups safely fetches the Configuration value for state's 'OIDCAdminGroups' field

func (*ConfigState) GetOIDCClientID added in v0.3.5

func (st *ConfigState) GetOIDCClientID() (v string)

GetOIDCClientID safely fetches the Configuration value for state's 'OIDCClientID' field

func (*ConfigState) GetOIDCClientSecret added in v0.3.5

func (st *ConfigState) GetOIDCClientSecret() (v string)

GetOIDCClientSecret safely fetches the Configuration value for state's 'OIDCClientSecret' field

func (*ConfigState) GetOIDCEnabled added in v0.3.5

func (st *ConfigState) GetOIDCEnabled() (v bool)

GetOIDCEnabled safely fetches the Configuration value for state's 'OIDCEnabled' field

func (*ConfigState) GetOIDCIdpName added in v0.3.5

func (st *ConfigState) GetOIDCIdpName() (v string)

GetOIDCIdpName safely fetches the Configuration value for state's 'OIDCIdpName' field

func (*ConfigState) GetOIDCIssuer added in v0.3.5

func (st *ConfigState) GetOIDCIssuer() (v string)

GetOIDCIssuer safely fetches the Configuration value for state's 'OIDCIssuer' field

func (*ConfigState) GetOIDCLinkExisting added in v0.7.0

func (st *ConfigState) GetOIDCLinkExisting() (v bool)

GetOIDCLinkExisting safely fetches the Configuration value for state's 'OIDCLinkExisting' field

func (*ConfigState) GetOIDCScopes added in v0.3.5

func (st *ConfigState) GetOIDCScopes() (v []string)

GetOIDCScopes safely fetches the Configuration value for state's 'OIDCScopes' field

func (*ConfigState) GetOIDCSkipVerification added in v0.3.5

func (st *ConfigState) GetOIDCSkipVerification() (v bool)

GetOIDCSkipVerification safely fetches the Configuration value for state's 'OIDCSkipVerification' field

func (*ConfigState) GetPort added in v0.3.5

func (st *ConfigState) GetPort() (v int)

GetPort safely fetches the Configuration value for state's 'Port' field

func (*ConfigState) GetProtocol added in v0.3.5

func (st *ConfigState) GetProtocol() (v string)

GetProtocol safely fetches the Configuration value for state's 'Protocol' field

func (*ConfigState) GetRequestIDHeader added in v0.7.1

func (st *ConfigState) GetRequestIDHeader() (v string)

GetRequestIDHeader safely fetches the Configuration value for state's 'RequestIDHeader' field

func (*ConfigState) GetSMTPDiscloseRecipients added in v0.8.0

func (st *ConfigState) GetSMTPDiscloseRecipients() (v bool)

GetSMTPDiscloseRecipients safely fetches the Configuration value for state's 'SMTPDiscloseRecipients' field

func (*ConfigState) GetSMTPFrom added in v0.3.5

func (st *ConfigState) GetSMTPFrom() (v string)

GetSMTPFrom safely fetches the Configuration value for state's 'SMTPFrom' field

func (*ConfigState) GetSMTPHost added in v0.3.5

func (st *ConfigState) GetSMTPHost() (v string)

GetSMTPHost safely fetches the Configuration value for state's 'SMTPHost' field

func (*ConfigState) GetSMTPPassword added in v0.3.5

func (st *ConfigState) GetSMTPPassword() (v string)

GetSMTPPassword safely fetches the Configuration value for state's 'SMTPPassword' field

func (*ConfigState) GetSMTPPort added in v0.3.5

func (st *ConfigState) GetSMTPPort() (v int)

GetSMTPPort safely fetches the Configuration value for state's 'SMTPPort' field

func (*ConfigState) GetSMTPUsername added in v0.3.5

func (st *ConfigState) GetSMTPUsername() (v string)

GetSMTPUsername safely fetches the Configuration value for state's 'SMTPUsername' field

func (*ConfigState) GetSoftwareVersion added in v0.3.5

func (st *ConfigState) GetSoftwareVersion() (v string)

GetSoftwareVersion safely fetches the Configuration value for state's 'SoftwareVersion' field

func (*ConfigState) GetStatusesCWMaxChars added in v0.3.5

func (st *ConfigState) GetStatusesCWMaxChars() (v int)

GetStatusesCWMaxChars safely fetches the Configuration value for state's 'StatusesCWMaxChars' field

func (*ConfigState) GetStatusesMaxChars added in v0.3.5

func (st *ConfigState) GetStatusesMaxChars() (v int)

GetStatusesMaxChars safely fetches the Configuration value for state's 'StatusesMaxChars' field

func (*ConfigState) GetStatusesMediaMaxFiles added in v0.3.5

func (st *ConfigState) GetStatusesMediaMaxFiles() (v int)

GetStatusesMediaMaxFiles safely fetches the Configuration value for state's 'StatusesMediaMaxFiles' field

func (*ConfigState) GetStatusesPollMaxOptions added in v0.3.5

func (st *ConfigState) GetStatusesPollMaxOptions() (v int)

GetStatusesPollMaxOptions safely fetches the Configuration value for state's 'StatusesPollMaxOptions' field

func (*ConfigState) GetStatusesPollOptionMaxChars added in v0.3.5

func (st *ConfigState) GetStatusesPollOptionMaxChars() (v int)

GetStatusesPollOptionMaxChars safely fetches the Configuration value for state's 'StatusesPollOptionMaxChars' field

func (*ConfigState) GetStorageBackend added in v0.3.5

func (st *ConfigState) GetStorageBackend() (v string)

GetStorageBackend safely fetches the Configuration value for state's 'StorageBackend' field

func (*ConfigState) GetStorageLocalBasePath added in v0.3.5

func (st *ConfigState) GetStorageLocalBasePath() (v string)

GetStorageLocalBasePath safely fetches the Configuration value for state's 'StorageLocalBasePath' field

func (*ConfigState) GetStorageS3AccessKey added in v0.3.7

func (st *ConfigState) GetStorageS3AccessKey() (v string)

GetStorageS3AccessKey safely fetches the Configuration value for state's 'StorageS3AccessKey' field

func (*ConfigState) GetStorageS3BucketName added in v0.3.7

func (st *ConfigState) GetStorageS3BucketName() (v string)

GetStorageS3BucketName safely fetches the Configuration value for state's 'StorageS3BucketName' field

func (*ConfigState) GetStorageS3Endpoint added in v0.3.7

func (st *ConfigState) GetStorageS3Endpoint() (v string)

GetStorageS3Endpoint safely fetches the Configuration value for state's 'StorageS3Endpoint' field

func (*ConfigState) GetStorageS3Proxy added in v0.6.0

func (st *ConfigState) GetStorageS3Proxy() (v bool)

GetStorageS3Proxy safely fetches the Configuration value for state's 'StorageS3Proxy' field

func (*ConfigState) GetStorageS3SecretKey added in v0.3.7

func (st *ConfigState) GetStorageS3SecretKey() (v string)

GetStorageS3SecretKey safely fetches the Configuration value for state's 'StorageS3SecretKey' field

func (*ConfigState) GetStorageS3UseSSL added in v0.3.7

func (st *ConfigState) GetStorageS3UseSSL() (v bool)

GetStorageS3UseSSL safely fetches the Configuration value for state's 'StorageS3UseSSL' field

func (*ConfigState) GetSyslogAddress added in v0.3.5

func (st *ConfigState) GetSyslogAddress() (v string)

GetSyslogAddress safely fetches the Configuration value for state's 'SyslogAddress' field

func (*ConfigState) GetSyslogEnabled added in v0.3.5

func (st *ConfigState) GetSyslogEnabled() (v bool)

GetSyslogEnabled safely fetches the Configuration value for state's 'SyslogEnabled' field

func (*ConfigState) GetSyslogProtocol added in v0.3.5

func (st *ConfigState) GetSyslogProtocol() (v string)

GetSyslogProtocol safely fetches the Configuration value for state's 'SyslogProtocol' field

func (*ConfigState) GetTLSCertificateChain added in v0.8.0

func (st *ConfigState) GetTLSCertificateChain() (v string)

GetTLSCertificateChain safely fetches the Configuration value for state's 'TLSCertificateChain' field

func (*ConfigState) GetTLSCertificateKey added in v0.8.0

func (st *ConfigState) GetTLSCertificateKey() (v string)

GetTLSCertificateKey safely fetches the Configuration value for state's 'TLSCertificateKey' field

func (*ConfigState) GetTrustedProxies added in v0.3.5

func (st *ConfigState) GetTrustedProxies() (v []string)

GetTrustedProxies safely fetches the Configuration value for state's 'TrustedProxies' field

func (*ConfigState) GetWebAssetBaseDir added in v0.3.5

func (st *ConfigState) GetWebAssetBaseDir() (v string)

GetWebAssetBaseDir safely fetches the Configuration value for state's 'WebAssetBaseDir' field

func (*ConfigState) GetWebTemplateBaseDir added in v0.3.5

func (st *ConfigState) GetWebTemplateBaseDir() (v string)

GetWebTemplateBaseDir safely fetches the Configuration value for state's 'WebTemplateBaseDir' field

func (*ConfigState) LoadEarlyFlags added in v0.3.5

func (st *ConfigState) LoadEarlyFlags(cmd *cobra.Command) (err error)

LoadEarlyFlags will bind specific flags from given Cobra command to ConfigState's viper instance, and load the current configuration values. This is useful for flags like .ConfigPath which have to parsed first in order to perform early configuration load.

func (*ConfigState) Reload added in v0.3.5

func (st *ConfigState) Reload() (err error)

Reload will reload the Configuration values from ConfigState's viper instance, and from file if set.

func (*ConfigState) SetAccountDomain added in v0.3.5

func (st *ConfigState) SetAccountDomain(v string)

SetAccountDomain safely sets the Configuration value for state's 'AccountDomain' field

func (*ConfigState) SetAccountsAllowCustomCSS added in v0.5.0

func (st *ConfigState) SetAccountsAllowCustomCSS(v bool)

SetAccountsAllowCustomCSS safely sets the Configuration value for state's 'AccountsAllowCustomCSS' field

func (*ConfigState) SetAccountsApprovalRequired added in v0.3.5

func (st *ConfigState) SetAccountsApprovalRequired(v bool)

SetAccountsApprovalRequired safely sets the Configuration value for state's 'AccountsApprovalRequired' field

func (*ConfigState) SetAccountsReasonRequired added in v0.3.5

func (st *ConfigState) SetAccountsReasonRequired(v bool)

SetAccountsReasonRequired safely sets the Configuration value for state's 'AccountsReasonRequired' field

func (*ConfigState) SetAccountsRegistrationOpen added in v0.3.5

func (st *ConfigState) SetAccountsRegistrationOpen(v bool)

SetAccountsRegistrationOpen safely sets the Configuration value for state's 'AccountsRegistrationOpen' field

func (*ConfigState) SetAdminAccountEmail added in v0.3.5

func (st *ConfigState) SetAdminAccountEmail(v string)

SetAdminAccountEmail safely sets the Configuration value for state's 'AdminAccountEmail' field

func (*ConfigState) SetAdminAccountPassword added in v0.3.5

func (st *ConfigState) SetAdminAccountPassword(v string)

SetAdminAccountPassword safely sets the Configuration value for state's 'AdminAccountPassword' field

func (*ConfigState) SetAdminAccountUsername added in v0.3.5

func (st *ConfigState) SetAdminAccountUsername(v string)

SetAdminAccountUsername safely sets the Configuration value for state's 'AdminAccountUsername' field

func (*ConfigState) SetAdminMediaPruneDryRun added in v0.6.0

func (st *ConfigState) SetAdminMediaPruneDryRun(v bool)

SetAdminMediaPruneDryRun safely sets the Configuration value for state's 'AdminMediaPruneDryRun' field

func (*ConfigState) SetAdminTransPath added in v0.3.5

func (st *ConfigState) SetAdminTransPath(v string)

SetAdminTransPath safely sets the Configuration value for state's 'AdminTransPath' field

func (*ConfigState) SetAdvancedCookiesSamesite added in v0.3.5

func (st *ConfigState) SetAdvancedCookiesSamesite(v string)

SetAdvancedCookiesSamesite safely sets the Configuration value for state's 'AdvancedCookiesSamesite' field

func (*ConfigState) SetAdvancedRateLimitRequests added in v0.6.0

func (st *ConfigState) SetAdvancedRateLimitRequests(v int)

SetAdvancedRateLimitRequests safely sets the Configuration value for state's 'AdvancedRateLimitRequests' field

func (*ConfigState) SetAdvancedThrottlingMultiplier added in v0.7.0

func (st *ConfigState) SetAdvancedThrottlingMultiplier(v int)

SetAdvancedThrottlingMultiplier safely sets the Configuration value for state's 'AdvancedThrottlingMultiplier' field

func (*ConfigState) SetAdvancedThrottlingRetryAfter added in v0.7.0

func (st *ConfigState) SetAdvancedThrottlingRetryAfter(v time.Duration)

SetAdvancedThrottlingRetryAfter safely sets the Configuration value for state's 'AdvancedThrottlingRetryAfter' field

func (*ConfigState) SetApplicationName added in v0.3.5

func (st *ConfigState) SetApplicationName(v string)

SetApplicationName safely sets the Configuration value for state's 'ApplicationName' field

func (*ConfigState) SetBindAddress added in v0.3.5

func (st *ConfigState) SetBindAddress(v string)

SetBindAddress safely sets the Configuration value for state's 'BindAddress' field

func (*ConfigState) SetCacheGTSAccountMaxSize added in v0.7.0

func (st *ConfigState) SetCacheGTSAccountMaxSize(v int)

SetCacheGTSAccountMaxSize safely sets the Configuration value for state's 'Cache.GTS.AccountMaxSize' field

func (*ConfigState) SetCacheGTSAccountSweepFreq added in v0.7.0

func (st *ConfigState) SetCacheGTSAccountSweepFreq(v time.Duration)

SetCacheGTSAccountSweepFreq safely sets the Configuration value for state's 'Cache.GTS.AccountSweepFreq' field

func (*ConfigState) SetCacheGTSAccountTTL added in v0.7.0

func (st *ConfigState) SetCacheGTSAccountTTL(v time.Duration)

SetCacheGTSAccountTTL safely sets the Configuration value for state's 'Cache.GTS.AccountTTL' field

func (*ConfigState) SetCacheGTSBlockMaxSize added in v0.7.0

func (st *ConfigState) SetCacheGTSBlockMaxSize(v int)

SetCacheGTSBlockMaxSize safely sets the Configuration value for state's 'Cache.GTS.BlockMaxSize' field

func (*ConfigState) SetCacheGTSBlockSweepFreq added in v0.7.0

func (st *ConfigState) SetCacheGTSBlockSweepFreq(v time.Duration)

SetCacheGTSBlockSweepFreq safely sets the Configuration value for state's 'Cache.GTS.BlockSweepFreq' field

func (*ConfigState) SetCacheGTSBlockTTL added in v0.7.0

func (st *ConfigState) SetCacheGTSBlockTTL(v time.Duration)

SetCacheGTSBlockTTL safely sets the Configuration value for state's 'Cache.GTS.BlockTTL' field

func (*ConfigState) SetCacheGTSDomainBlockMaxSize added in v0.7.0

func (st *ConfigState) SetCacheGTSDomainBlockMaxSize(v int)

SetCacheGTSDomainBlockMaxSize safely sets the Configuration value for state's 'Cache.GTS.DomainBlockMaxSize' field

func (*ConfigState) SetCacheGTSDomainBlockSweepFreq added in v0.7.0

func (st *ConfigState) SetCacheGTSDomainBlockSweepFreq(v time.Duration)

SetCacheGTSDomainBlockSweepFreq safely sets the Configuration value for state's 'Cache.GTS.DomainBlockSweepFreq' field

func (*ConfigState) SetCacheGTSDomainBlockTTL added in v0.7.0

func (st *ConfigState) SetCacheGTSDomainBlockTTL(v time.Duration)

SetCacheGTSDomainBlockTTL safely sets the Configuration value for state's 'Cache.GTS.DomainBlockTTL' field

func (*ConfigState) SetCacheGTSEmojiCategoryMaxSize added in v0.7.0

func (st *ConfigState) SetCacheGTSEmojiCategoryMaxSize(v int)

SetCacheGTSEmojiCategoryMaxSize safely sets the Configuration value for state's 'Cache.GTS.EmojiCategoryMaxSize' field

func (*ConfigState) SetCacheGTSEmojiCategorySweepFreq added in v0.7.0

func (st *ConfigState) SetCacheGTSEmojiCategorySweepFreq(v time.Duration)

SetCacheGTSEmojiCategorySweepFreq safely sets the Configuration value for state's 'Cache.GTS.EmojiCategorySweepFreq' field

func (*ConfigState) SetCacheGTSEmojiCategoryTTL added in v0.7.0

func (st *ConfigState) SetCacheGTSEmojiCategoryTTL(v time.Duration)

SetCacheGTSEmojiCategoryTTL safely sets the Configuration value for state's 'Cache.GTS.EmojiCategoryTTL' field

func (*ConfigState) SetCacheGTSEmojiMaxSize added in v0.7.0

func (st *ConfigState) SetCacheGTSEmojiMaxSize(v int)

SetCacheGTSEmojiMaxSize safely sets the Configuration value for state's 'Cache.GTS.EmojiMaxSize' field

func (*ConfigState) SetCacheGTSEmojiSweepFreq added in v0.7.0

func (st *ConfigState) SetCacheGTSEmojiSweepFreq(v time.Duration)

SetCacheGTSEmojiSweepFreq safely sets the Configuration value for state's 'Cache.GTS.EmojiSweepFreq' field

func (*ConfigState) SetCacheGTSEmojiTTL added in v0.7.0

func (st *ConfigState) SetCacheGTSEmojiTTL(v time.Duration)

SetCacheGTSEmojiTTL safely sets the Configuration value for state's 'Cache.GTS.EmojiTTL' field

func (*ConfigState) SetCacheGTSFollowMaxSize added in v0.8.0

func (st *ConfigState) SetCacheGTSFollowMaxSize(v int)

SetCacheGTSFollowMaxSize safely sets the Configuration value for state's 'Cache.GTS.FollowMaxSize' field

func (*ConfigState) SetCacheGTSFollowRequestMaxSize added in v0.8.0

func (st *ConfigState) SetCacheGTSFollowRequestMaxSize(v int)

SetCacheGTSFollowRequestMaxSize safely sets the Configuration value for state's 'Cache.GTS.FollowRequestMaxSize' field

func (*ConfigState) SetCacheGTSFollowRequestSweepFreq added in v0.8.0

func (st *ConfigState) SetCacheGTSFollowRequestSweepFreq(v time.Duration)

SetCacheGTSFollowRequestSweepFreq safely sets the Configuration value for state's 'Cache.GTS.FollowRequestSweepFreq' field

func (*ConfigState) SetCacheGTSFollowRequestTTL added in v0.8.0

func (st *ConfigState) SetCacheGTSFollowRequestTTL(v time.Duration)

SetCacheGTSFollowRequestTTL safely sets the Configuration value for state's 'Cache.GTS.FollowRequestTTL' field

func (*ConfigState) SetCacheGTSFollowSweepFreq added in v0.8.0

func (st *ConfigState) SetCacheGTSFollowSweepFreq(v time.Duration)

SetCacheGTSFollowSweepFreq safely sets the Configuration value for state's 'Cache.GTS.FollowSweepFreq' field

func (*ConfigState) SetCacheGTSFollowTTL added in v0.8.0

func (st *ConfigState) SetCacheGTSFollowTTL(v time.Duration)

SetCacheGTSFollowTTL safely sets the Configuration value for state's 'Cache.GTS.FollowTTL' field

func (*ConfigState) SetCacheGTSMediaMaxSize added in v0.8.0

func (st *ConfigState) SetCacheGTSMediaMaxSize(v int)

SetCacheGTSMediaMaxSize safely sets the Configuration value for state's 'Cache.GTS.MediaMaxSize' field

func (*ConfigState) SetCacheGTSMediaSweepFreq added in v0.8.0

func (st *ConfigState) SetCacheGTSMediaSweepFreq(v time.Duration)

SetCacheGTSMediaSweepFreq safely sets the Configuration value for state's 'Cache.GTS.MediaSweepFreq' field

func (*ConfigState) SetCacheGTSMediaTTL added in v0.8.0

func (st *ConfigState) SetCacheGTSMediaTTL(v time.Duration)

SetCacheGTSMediaTTL safely sets the Configuration value for state's 'Cache.GTS.MediaTTL' field

func (*ConfigState) SetCacheGTSMentionMaxSize added in v0.7.0

func (st *ConfigState) SetCacheGTSMentionMaxSize(v int)

SetCacheGTSMentionMaxSize safely sets the Configuration value for state's 'Cache.GTS.MentionMaxSize' field

func (*ConfigState) SetCacheGTSMentionSweepFreq added in v0.7.0

func (st *ConfigState) SetCacheGTSMentionSweepFreq(v time.Duration)

SetCacheGTSMentionSweepFreq safely sets the Configuration value for state's 'Cache.GTS.MentionSweepFreq' field

func (*ConfigState) SetCacheGTSMentionTTL added in v0.7.0

func (st *ConfigState) SetCacheGTSMentionTTL(v time.Duration)

SetCacheGTSMentionTTL safely sets the Configuration value for state's 'Cache.GTS.MentionTTL' field

func (*ConfigState) SetCacheGTSNotificationMaxSize added in v0.7.0

func (st *ConfigState) SetCacheGTSNotificationMaxSize(v int)

SetCacheGTSNotificationMaxSize safely sets the Configuration value for state's 'Cache.GTS.NotificationMaxSize' field

func (*ConfigState) SetCacheGTSNotificationSweepFreq added in v0.7.0

func (st *ConfigState) SetCacheGTSNotificationSweepFreq(v time.Duration)

SetCacheGTSNotificationSweepFreq safely sets the Configuration value for state's 'Cache.GTS.NotificationSweepFreq' field

func (*ConfigState) SetCacheGTSNotificationTTL added in v0.7.0

func (st *ConfigState) SetCacheGTSNotificationTTL(v time.Duration)

SetCacheGTSNotificationTTL safely sets the Configuration value for state's 'Cache.GTS.NotificationTTL' field

func (*ConfigState) SetCacheGTSReportMaxSize added in v0.7.0

func (st *ConfigState) SetCacheGTSReportMaxSize(v int)

SetCacheGTSReportMaxSize safely sets the Configuration value for state's 'Cache.GTS.ReportMaxSize' field

func (*ConfigState) SetCacheGTSReportSweepFreq added in v0.7.0

func (st *ConfigState) SetCacheGTSReportSweepFreq(v time.Duration)

SetCacheGTSReportSweepFreq safely sets the Configuration value for state's 'Cache.GTS.ReportSweepFreq' field

func (*ConfigState) SetCacheGTSReportTTL added in v0.7.0

func (st *ConfigState) SetCacheGTSReportTTL(v time.Duration)

SetCacheGTSReportTTL safely sets the Configuration value for state's 'Cache.GTS.ReportTTL' field

func (*ConfigState) SetCacheGTSStatusFaveMaxSize added in v0.8.0

func (st *ConfigState) SetCacheGTSStatusFaveMaxSize(v int)

SetCacheGTSStatusFaveMaxSize safely sets the Configuration value for state's 'Cache.GTS.StatusFaveMaxSize' field

func (*ConfigState) SetCacheGTSStatusFaveSweepFreq added in v0.8.0

func (st *ConfigState) SetCacheGTSStatusFaveSweepFreq(v time.Duration)

SetCacheGTSStatusFaveSweepFreq safely sets the Configuration value for state's 'Cache.GTS.StatusFaveSweepFreq' field

func (*ConfigState) SetCacheGTSStatusFaveTTL added in v0.8.0

func (st *ConfigState) SetCacheGTSStatusFaveTTL(v time.Duration)

SetCacheGTSStatusFaveTTL safely sets the Configuration value for state's 'Cache.GTS.StatusFaveTTL' field

func (*ConfigState) SetCacheGTSStatusMaxSize added in v0.7.0

func (st *ConfigState) SetCacheGTSStatusMaxSize(v int)

SetCacheGTSStatusMaxSize safely sets the Configuration value for state's 'Cache.GTS.StatusMaxSize' field

func (*ConfigState) SetCacheGTSStatusSweepFreq added in v0.7.0

func (st *ConfigState) SetCacheGTSStatusSweepFreq(v time.Duration)

SetCacheGTSStatusSweepFreq safely sets the Configuration value for state's 'Cache.GTS.StatusSweepFreq' field

func (*ConfigState) SetCacheGTSStatusTTL added in v0.7.0

func (st *ConfigState) SetCacheGTSStatusTTL(v time.Duration)

SetCacheGTSStatusTTL safely sets the Configuration value for state's 'Cache.GTS.StatusTTL' field

func (*ConfigState) SetCacheGTSTombstoneMaxSize added in v0.7.0

func (st *ConfigState) SetCacheGTSTombstoneMaxSize(v int)

SetCacheGTSTombstoneMaxSize safely sets the Configuration value for state's 'Cache.GTS.TombstoneMaxSize' field

func (*ConfigState) SetCacheGTSTombstoneSweepFreq added in v0.7.0

func (st *ConfigState) SetCacheGTSTombstoneSweepFreq(v time.Duration)

SetCacheGTSTombstoneSweepFreq safely sets the Configuration value for state's 'Cache.GTS.TombstoneSweepFreq' field

func (*ConfigState) SetCacheGTSTombstoneTTL added in v0.7.0

func (st *ConfigState) SetCacheGTSTombstoneTTL(v time.Duration)

SetCacheGTSTombstoneTTL safely sets the Configuration value for state's 'Cache.GTS.TombstoneTTL' field

func (*ConfigState) SetCacheGTSUserMaxSize added in v0.7.0

func (st *ConfigState) SetCacheGTSUserMaxSize(v int)

SetCacheGTSUserMaxSize safely sets the Configuration value for state's 'Cache.GTS.UserMaxSize' field

func (*ConfigState) SetCacheGTSUserSweepFreq added in v0.7.0

func (st *ConfigState) SetCacheGTSUserSweepFreq(v time.Duration)

SetCacheGTSUserSweepFreq safely sets the Configuration value for state's 'Cache.GTS.UserSweepFreq' field

func (*ConfigState) SetCacheGTSUserTTL added in v0.7.0

func (st *ConfigState) SetCacheGTSUserTTL(v time.Duration)

SetCacheGTSUserTTL safely sets the Configuration value for state's 'Cache.GTS.UserTTL' field

func (*ConfigState) SetCacheGTSWebfingerMaxSize added in v0.8.0

func (st *ConfigState) SetCacheGTSWebfingerMaxSize(v int)

SetCacheGTSWebfingerMaxSize safely sets the Configuration value for state's 'Cache.GTS.WebfingerMaxSize' field

func (*ConfigState) SetCacheGTSWebfingerSweepFreq added in v0.8.0

func (st *ConfigState) SetCacheGTSWebfingerSweepFreq(v time.Duration)

SetCacheGTSWebfingerSweepFreq safely sets the Configuration value for state's 'Cache.GTS.WebfingerSweepFreq' field

func (*ConfigState) SetCacheGTSWebfingerTTL added in v0.8.0

func (st *ConfigState) SetCacheGTSWebfingerTTL(v time.Duration)

SetCacheGTSWebfingerTTL safely sets the Configuration value for state's 'Cache.GTS.WebfingerTTL' field

func (*ConfigState) SetCacheVisibilityMaxSize added in v0.8.0

func (st *ConfigState) SetCacheVisibilityMaxSize(v int)

SetCacheVisibilityMaxSize safely sets the Configuration value for state's 'Cache.VisibilityMaxSize' field

func (*ConfigState) SetCacheVisibilitySweepFreq added in v0.8.0

func (st *ConfigState) SetCacheVisibilitySweepFreq(v time.Duration)

SetCacheVisibilitySweepFreq safely sets the Configuration value for state's 'Cache.VisibilitySweepFreq' field

func (*ConfigState) SetCacheVisibilityTTL added in v0.8.0

func (st *ConfigState) SetCacheVisibilityTTL(v time.Duration)

SetCacheVisibilityTTL safely sets the Configuration value for state's 'Cache.VisibilityTTL' field

func (*ConfigState) SetConfigPath added in v0.3.5

func (st *ConfigState) SetConfigPath(v string)

SetConfigPath safely sets the Configuration value for state's 'ConfigPath' field

func (*ConfigState) SetDbAddress added in v0.3.5

func (st *ConfigState) SetDbAddress(v string)

SetDbAddress safely sets the Configuration value for state's 'DbAddress' field

func (*ConfigState) SetDbDatabase added in v0.3.5

func (st *ConfigState) SetDbDatabase(v string)

SetDbDatabase safely sets the Configuration value for state's 'DbDatabase' field

func (*ConfigState) SetDbMaxOpenConnsMultiplier added in v0.7.0

func (st *ConfigState) SetDbMaxOpenConnsMultiplier(v int)

SetDbMaxOpenConnsMultiplier safely sets the Configuration value for state's 'DbMaxOpenConnsMultiplier' field

func (*ConfigState) SetDbPassword added in v0.3.5

func (st *ConfigState) SetDbPassword(v string)

SetDbPassword safely sets the Configuration value for state's 'DbPassword' field

func (*ConfigState) SetDbPort added in v0.3.5

func (st *ConfigState) SetDbPort(v int)

SetDbPort safely sets the Configuration value for state's 'DbPort' field

func (*ConfigState) SetDbSqliteBusyTimeout added in v0.7.0

func (st *ConfigState) SetDbSqliteBusyTimeout(v time.Duration)

SetDbSqliteBusyTimeout safely sets the Configuration value for state's 'DbSqliteBusyTimeout' field

func (*ConfigState) SetDbSqliteCacheSize added in v0.7.0

func (st *ConfigState) SetDbSqliteCacheSize(v bytesize.Size)

SetDbSqliteCacheSize safely sets the Configuration value for state's 'DbSqliteCacheSize' field

func (*ConfigState) SetDbSqliteJournalMode added in v0.7.0

func (st *ConfigState) SetDbSqliteJournalMode(v string)

SetDbSqliteJournalMode safely sets the Configuration value for state's 'DbSqliteJournalMode' field

func (*ConfigState) SetDbSqliteSynchronous added in v0.7.0

func (st *ConfigState) SetDbSqliteSynchronous(v string)

SetDbSqliteSynchronous safely sets the Configuration value for state's 'DbSqliteSynchronous' field

func (*ConfigState) SetDbTLSCACert added in v0.3.5

func (st *ConfigState) SetDbTLSCACert(v string)

SetDbTLSCACert safely sets the Configuration value for state's 'DbTLSCACert' field

func (*ConfigState) SetDbTLSMode added in v0.3.5

func (st *ConfigState) SetDbTLSMode(v string)

SetDbTLSMode safely sets the Configuration value for state's 'DbTLSMode' field

func (*ConfigState) SetDbType added in v0.3.5

func (st *ConfigState) SetDbType(v string)

SetDbType safely sets the Configuration value for state's 'DbType' field

func (*ConfigState) SetDbUser added in v0.3.5

func (st *ConfigState) SetDbUser(v string)

SetDbUser safely sets the Configuration value for state's 'DbUser' field

func (*ConfigState) SetHost added in v0.3.5

func (st *ConfigState) SetHost(v string)

SetHost safely sets the Configuration value for state's 'Host' field

func (*ConfigState) SetInstanceDeliverToSharedInboxes added in v0.5.0

func (st *ConfigState) SetInstanceDeliverToSharedInboxes(v bool)

SetInstanceDeliverToSharedInboxes safely sets the Configuration value for state's 'InstanceDeliverToSharedInboxes' field

func (*ConfigState) SetInstanceExposePeers added in v0.3.7

func (st *ConfigState) SetInstanceExposePeers(v bool)

SetInstanceExposePeers safely sets the Configuration value for state's 'InstanceExposePeers' field

func (*ConfigState) SetInstanceExposePublicTimeline added in v0.6.0

func (st *ConfigState) SetInstanceExposePublicTimeline(v bool)

SetInstanceExposePublicTimeline safely sets the Configuration value for state's 'InstanceExposePublicTimeline' field

func (*ConfigState) SetInstanceExposeSuspended added in v0.3.7

func (st *ConfigState) SetInstanceExposeSuspended(v bool)

SetInstanceExposeSuspended safely sets the Configuration value for state's 'InstanceExposeSuspended' field

func (*ConfigState) SetInstanceExposeSuspendedWeb added in v0.7.0

func (st *ConfigState) SetInstanceExposeSuspendedWeb(v bool)

SetInstanceExposeSuspendedWeb safely sets the Configuration value for state's 'InstanceExposeSuspendedWeb' field

func (*ConfigState) SetLandingPageUser added in v0.6.0

func (st *ConfigState) SetLandingPageUser(v string)

SetLandingPageUser safely sets the Configuration value for state's 'LandingPageUser' field

func (*ConfigState) SetLetsEncryptCertDir added in v0.3.5

func (st *ConfigState) SetLetsEncryptCertDir(v string)

SetLetsEncryptCertDir safely sets the Configuration value for state's 'LetsEncryptCertDir' field

func (*ConfigState) SetLetsEncryptEmailAddress added in v0.3.5

func (st *ConfigState) SetLetsEncryptEmailAddress(v string)

SetLetsEncryptEmailAddress safely sets the Configuration value for state's 'LetsEncryptEmailAddress' field

func (*ConfigState) SetLetsEncryptEnabled added in v0.3.5

func (st *ConfigState) SetLetsEncryptEnabled(v bool)

SetLetsEncryptEnabled safely sets the Configuration value for state's 'LetsEncryptEnabled' field

func (*ConfigState) SetLetsEncryptPort added in v0.3.5

func (st *ConfigState) SetLetsEncryptPort(v int)

SetLetsEncryptPort safely sets the Configuration value for state's 'LetsEncryptPort' field

func (*ConfigState) SetLogDbQueries added in v0.3.5

func (st *ConfigState) SetLogDbQueries(v bool)

SetLogDbQueries safely sets the Configuration value for state's 'LogDbQueries' field

func (*ConfigState) SetLogLevel added in v0.3.5

func (st *ConfigState) SetLogLevel(v string)

SetLogLevel safely sets the Configuration value for state's 'LogLevel' field

func (*ConfigState) SetMediaDescriptionMaxChars added in v0.3.5

func (st *ConfigState) SetMediaDescriptionMaxChars(v int)

SetMediaDescriptionMaxChars safely sets the Configuration value for state's 'MediaDescriptionMaxChars' field

func (*ConfigState) SetMediaDescriptionMinChars added in v0.3.5

func (st *ConfigState) SetMediaDescriptionMinChars(v int)

SetMediaDescriptionMinChars safely sets the Configuration value for state's 'MediaDescriptionMinChars' field

func (*ConfigState) SetMediaEmojiLocalMaxSize added in v0.5.0

func (st *ConfigState) SetMediaEmojiLocalMaxSize(v bytesize.Size)

SetMediaEmojiLocalMaxSize safely sets the Configuration value for state's 'MediaEmojiLocalMaxSize' field

func (*ConfigState) SetMediaEmojiRemoteMaxSize added in v0.5.0

func (st *ConfigState) SetMediaEmojiRemoteMaxSize(v bytesize.Size)

SetMediaEmojiRemoteMaxSize safely sets the Configuration value for state's 'MediaEmojiRemoteMaxSize' field

func (*ConfigState) SetMediaImageMaxSize added in v0.3.5

func (st *ConfigState) SetMediaImageMaxSize(v bytesize.Size)

SetMediaImageMaxSize safely sets the Configuration value for state's 'MediaImageMaxSize' field

func (*ConfigState) SetMediaRemoteCacheDays added in v0.3.5

func (st *ConfigState) SetMediaRemoteCacheDays(v int)

SetMediaRemoteCacheDays safely sets the Configuration value for state's 'MediaRemoteCacheDays' field

func (*ConfigState) SetMediaVideoMaxSize added in v0.3.5

func (st *ConfigState) SetMediaVideoMaxSize(v bytesize.Size)

SetMediaVideoMaxSize safely sets the Configuration value for state's 'MediaVideoMaxSize' field

func (*ConfigState) SetOIDCAdminGroups added in v0.8.0

func (st *ConfigState) SetOIDCAdminGroups(v []string)

SetOIDCAdminGroups safely sets the Configuration value for state's 'OIDCAdminGroups' field

func (*ConfigState) SetOIDCClientID added in v0.3.5

func (st *ConfigState) SetOIDCClientID(v string)

SetOIDCClientID safely sets the Configuration value for state's 'OIDCClientID' field

func (*ConfigState) SetOIDCClientSecret added in v0.3.5

func (st *ConfigState) SetOIDCClientSecret(v string)

SetOIDCClientSecret safely sets the Configuration value for state's 'OIDCClientSecret' field

func (*ConfigState) SetOIDCEnabled added in v0.3.5

func (st *ConfigState) SetOIDCEnabled(v bool)

SetOIDCEnabled safely sets the Configuration value for state's 'OIDCEnabled' field

func (*ConfigState) SetOIDCIdpName added in v0.3.5

func (st *ConfigState) SetOIDCIdpName(v string)

SetOIDCIdpName safely sets the Configuration value for state's 'OIDCIdpName' field

func (*ConfigState) SetOIDCIssuer added in v0.3.5

func (st *ConfigState) SetOIDCIssuer(v string)

SetOIDCIssuer safely sets the Configuration value for state's 'OIDCIssuer' field

func (*ConfigState) SetOIDCLinkExisting added in v0.7.0

func (st *ConfigState) SetOIDCLinkExisting(v bool)

SetOIDCLinkExisting safely sets the Configuration value for state's 'OIDCLinkExisting' field

func (*ConfigState) SetOIDCScopes added in v0.3.5

func (st *ConfigState) SetOIDCScopes(v []string)

SetOIDCScopes safely sets the Configuration value for state's 'OIDCScopes' field

func (*ConfigState) SetOIDCSkipVerification added in v0.3.5

func (st *ConfigState) SetOIDCSkipVerification(v bool)

SetOIDCSkipVerification safely sets the Configuration value for state's 'OIDCSkipVerification' field

func (*ConfigState) SetPort added in v0.3.5

func (st *ConfigState) SetPort(v int)

SetPort safely sets the Configuration value for state's 'Port' field

func (*ConfigState) SetProtocol added in v0.3.5

func (st *ConfigState) SetProtocol(v string)

SetProtocol safely sets the Configuration value for state's 'Protocol' field

func (*ConfigState) SetRequestIDHeader added in v0.7.1

func (st *ConfigState) SetRequestIDHeader(v string)

SetRequestIDHeader safely sets the Configuration value for state's 'RequestIDHeader' field

func (*ConfigState) SetSMTPDiscloseRecipients added in v0.8.0

func (st *ConfigState) SetSMTPDiscloseRecipients(v bool)

SetSMTPDiscloseRecipients safely sets the Configuration value for state's 'SMTPDiscloseRecipients' field

func (*ConfigState) SetSMTPFrom added in v0.3.5

func (st *ConfigState) SetSMTPFrom(v string)

SetSMTPFrom safely sets the Configuration value for state's 'SMTPFrom' field

func (*ConfigState) SetSMTPHost added in v0.3.5

func (st *ConfigState) SetSMTPHost(v string)

SetSMTPHost safely sets the Configuration value for state's 'SMTPHost' field

func (*ConfigState) SetSMTPPassword added in v0.3.5

func (st *ConfigState) SetSMTPPassword(v string)

SetSMTPPassword safely sets the Configuration value for state's 'SMTPPassword' field

func (*ConfigState) SetSMTPPort added in v0.3.5

func (st *ConfigState) SetSMTPPort(v int)

SetSMTPPort safely sets the Configuration value for state's 'SMTPPort' field

func (*ConfigState) SetSMTPUsername added in v0.3.5

func (st *ConfigState) SetSMTPUsername(v string)

SetSMTPUsername safely sets the Configuration value for state's 'SMTPUsername' field

func (*ConfigState) SetSoftwareVersion added in v0.3.5

func (st *ConfigState) SetSoftwareVersion(v string)

SetSoftwareVersion safely sets the Configuration value for state's 'SoftwareVersion' field

func (*ConfigState) SetStatusesCWMaxChars added in v0.3.5

func (st *ConfigState) SetStatusesCWMaxChars(v int)

SetStatusesCWMaxChars safely sets the Configuration value for state's 'StatusesCWMaxChars' field

func (*ConfigState) SetStatusesMaxChars added in v0.3.5

func (st *ConfigState) SetStatusesMaxChars(v int)

SetStatusesMaxChars safely sets the Configuration value for state's 'StatusesMaxChars' field

func (*ConfigState) SetStatusesMediaMaxFiles added in v0.3.5

func (st *ConfigState) SetStatusesMediaMaxFiles(v int)

SetStatusesMediaMaxFiles safely sets the Configuration value for state's 'StatusesMediaMaxFiles' field

func (*ConfigState) SetStatusesPollMaxOptions added in v0.3.5

func (st *ConfigState) SetStatusesPollMaxOptions(v int)

SetStatusesPollMaxOptions safely sets the Configuration value for state's 'StatusesPollMaxOptions' field

func (*ConfigState) SetStatusesPollOptionMaxChars added in v0.3.5

func (st *ConfigState) SetStatusesPollOptionMaxChars(v int)

SetStatusesPollOptionMaxChars safely sets the Configuration value for state's 'StatusesPollOptionMaxChars' field

func (*ConfigState) SetStorageBackend added in v0.3.5

func (st *ConfigState) SetStorageBackend(v string)

SetStorageBackend safely sets the Configuration value for state's 'StorageBackend' field

func (*ConfigState) SetStorageLocalBasePath added in v0.3.5

func (st *ConfigState) SetStorageLocalBasePath(v string)

SetStorageLocalBasePath safely sets the Configuration value for state's 'StorageLocalBasePath' field

func (*ConfigState) SetStorageS3AccessKey added in v0.3.7

func (st *ConfigState) SetStorageS3AccessKey(v string)

SetStorageS3AccessKey safely sets the Configuration value for state's 'StorageS3AccessKey' field

func (*ConfigState) SetStorageS3BucketName added in v0.3.7

func (st *ConfigState) SetStorageS3BucketName(v string)

SetStorageS3BucketName safely sets the Configuration value for state's 'StorageS3BucketName' field

func (*ConfigState) SetStorageS3Endpoint added in v0.3.7

func (st *ConfigState) SetStorageS3Endpoint(v string)

SetStorageS3Endpoint safely sets the Configuration value for state's 'StorageS3Endpoint' field

func (*ConfigState) SetStorageS3Proxy added in v0.6.0

func (st *ConfigState) SetStorageS3Proxy(v bool)

SetStorageS3Proxy safely sets the Configuration value for state's 'StorageS3Proxy' field

func (*ConfigState) SetStorageS3SecretKey added in v0.3.7

func (st *ConfigState) SetStorageS3SecretKey(v string)

SetStorageS3SecretKey safely sets the Configuration value for state's 'StorageS3SecretKey' field

func (*ConfigState) SetStorageS3UseSSL added in v0.3.7

func (st *ConfigState) SetStorageS3UseSSL(v bool)

SetStorageS3UseSSL safely sets the Configuration value for state's 'StorageS3UseSSL' field

func (*ConfigState) SetSyslogAddress added in v0.3.5

func (st *ConfigState) SetSyslogAddress(v string)

SetSyslogAddress safely sets the Configuration value for state's 'SyslogAddress' field

func (*ConfigState) SetSyslogEnabled added in v0.3.5

func (st *ConfigState) SetSyslogEnabled(v bool)

SetSyslogEnabled safely sets the Configuration value for state's 'SyslogEnabled' field

func (*ConfigState) SetSyslogProtocol added in v0.3.5

func (st *ConfigState) SetSyslogProtocol(v string)

SetSyslogProtocol safely sets the Configuration value for state's 'SyslogProtocol' field

func (*ConfigState) SetTLSCertificateChain added in v0.8.0

func (st *ConfigState) SetTLSCertificateChain(v string)

SetTLSCertificateChain safely sets the Configuration value for state's 'TLSCertificateChain' field

func (*ConfigState) SetTLSCertificateKey added in v0.8.0

func (st *ConfigState) SetTLSCertificateKey(v string)

SetTLSCertificateKey safely sets the Configuration value for state's 'TLSCertificateKey' field

func (*ConfigState) SetTrustedProxies added in v0.3.5

func (st *ConfigState) SetTrustedProxies(v []string)

SetTrustedProxies safely sets the Configuration value for state's 'TrustedProxies' field

func (*ConfigState) SetWebAssetBaseDir added in v0.3.5

func (st *ConfigState) SetWebAssetBaseDir(v string)

SetWebAssetBaseDir safely sets the Configuration value for state's 'WebAssetBaseDir' field

func (*ConfigState) SetWebTemplateBaseDir added in v0.3.5

func (st *ConfigState) SetWebTemplateBaseDir(v string)

SetWebTemplateBaseDir safely sets the Configuration value for state's 'WebTemplateBaseDir' field

func (*ConfigState) Viper added in v0.3.5

func (st *ConfigState) Viper(fn func(*viper.Viper))

Viper provides safe access to the ConfigState's contained viper instance, and will reload the current viper setting state back into Configuration.

type Configuration added in v0.3.5

type Configuration struct {
	LogLevel        string   `name:"log-level" usage:"Log level to run at: [trace, debug, info, warn, fatal]"`
	LogDbQueries    bool     `name:"log-db-queries" usage:"Log database queries verbosely when log-level is trace or debug"`
	ApplicationName string   `name:"application-name" usage:"Name of the application, used in various places internally"`
	LandingPageUser string   `name:"landing-page-user" usage:"the user that should be shown on the instance's landing page"`
	ConfigPath      string   `` /* 161-byte string literal not displayed */
	Host            string   `` /* 146-byte string literal not displayed */
	AccountDomain   string   `` /* 195-byte string literal not displayed */
	Protocol        string   `` /* 134-byte string literal not displayed */
	BindAddress     string   `` /* 223-byte string literal not displayed */
	Port            int      `name:"port" usage:"Port to use for GoToSocial. Change this to 443 if you're running the binary directly on the host machine."`
	TrustedProxies  []string `name:"trusted-proxies" usage:"Proxies to trust when parsing x-forwarded headers into real IPs."`
	SoftwareVersion string   `name:"software-version" usage:""`

	DbType                   string        `name:"db-type" usage:"Database type: eg., postgres"`
	DbAddress                string        `name:"db-address" usage:"Database ipv4 address, hostname, or filename"`
	DbPort                   int           `name:"db-port" usage:"Database port"`
	DbUser                   string        `name:"db-user" usage:"Database username"`
	DbPassword               string        `name:"db-password" usage:"Database password"`
	DbDatabase               string        `name:"db-database" usage:"Database name"`
	DbTLSMode                string        `name:"db-tls-mode" usage:"Database tls mode"`
	DbTLSCACert              string        `name:"db-tls-ca-cert" usage:"Path to CA cert for db tls connection"`
	DbMaxOpenConnsMultiplier int           `` /* 134-byte string literal not displayed */
	DbSqliteJournalMode      string        `name:"db-sqlite-journal-mode" usage:"Sqlite only: see https://www.sqlite.org/pragma.html#pragma_journal_mode"`
	DbSqliteSynchronous      string        `name:"db-sqlite-synchronous" usage:"Sqlite only: see https://www.sqlite.org/pragma.html#pragma_synchronous"`
	DbSqliteCacheSize        bytesize.Size `name:"db-sqlite-cache-size" usage:"Sqlite only: see https://www.sqlite.org/pragma.html#pragma_cache_size"`
	DbSqliteBusyTimeout      time.Duration `name:"db-sqlite-busy-timeout" usage:"Sqlite only: see https://www.sqlite.org/pragma.html#pragma_busy_timeout"`

	WebTemplateBaseDir string `name:"web-template-base-dir" usage:"Basedir for html templating files for rendering pages and composing emails."`
	WebAssetBaseDir    string `name:"web-asset-base-dir" usage:"Directory to serve static assets from, accessible at example.org/assets/"`

	InstanceExposePeers            bool `name:"instance-expose-peers" usage:"Allow unauthenticated users to query /api/v1/instance/peers?filter=open"`
	InstanceExposeSuspended        bool `` /* 160-byte string literal not displayed */
	InstanceExposeSuspendedWeb     bool `name:"instance-expose-suspended-web" usage:"Expose list of suspended instances as webpage on /about/suspended"`
	InstanceExposePublicTimeline   bool `name:"instance-expose-public-timeline" usage:"Allow unauthenticated users to query /api/v1/timelines/public"`
	InstanceDeliverToSharedInboxes bool `name:"instance-deliver-to-shared-inboxes" usage:"Deliver federated messages to shared inboxes, if they're available."`

	AccountsRegistrationOpen bool `` /* 129-byte string literal not displayed */
	AccountsApprovalRequired bool `` /* 186-byte string literal not displayed */
	AccountsReasonRequired   bool `name:"accounts-reason-required" usage:"Do new account signups require a reason to be submitted on registration?"`
	AccountsAllowCustomCSS   bool `name:"accounts-allow-custom-css" usage:"Allow accounts to enable custom CSS for their profile pages and statuses."`

	MediaImageMaxSize        bytesize.Size `name:"media-image-max-size" usage:"Max size of accepted images in bytes"`
	MediaVideoMaxSize        bytesize.Size `name:"media-video-max-size" usage:"Max size of accepted videos in bytes"`
	MediaDescriptionMinChars int           `name:"media-description-min-chars" usage:"Min required chars for an image description"`
	MediaDescriptionMaxChars int           `name:"media-description-max-chars" usage:"Max permitted chars for an image description"`
	MediaRemoteCacheDays     int           `` /* 152-byte string literal not displayed */
	MediaEmojiLocalMaxSize   bytesize.Size `name:"media-emoji-local-max-size" usage:"Max size in bytes of emojis uploaded to this instance via the admin API."`
	MediaEmojiRemoteMaxSize  bytesize.Size `name:"media-emoji-remote-max-size" usage:"Max size in bytes of emojis to download from other instances."`

	StorageBackend       string `name:"storage-backend" usage:"Storage backend to use for media attachments"`
	StorageLocalBasePath string `` /* 169-byte string literal not displayed */
	StorageS3Endpoint    string `name:"storage-s3-endpoint" usage:"S3 Endpoint URL (e.g 'minio.example.org:9000')"`
	StorageS3AccessKey   string `name:"storage-s3-access-key" usage:"S3 Access Key"`
	StorageS3SecretKey   string `name:"storage-s3-secret-key" usage:"S3 Secret Key"`
	StorageS3UseSSL      bool   `name:"storage-s3-use-ssl" usage:"Use SSL for S3 connections. Only set this to 'false' when testing locally"`
	StorageS3BucketName  string `name:"storage-s3-bucket" usage:"Place blobs in this bucket"`
	StorageS3Proxy       bool   `name:"storage-s3-proxy" usage:"Proxy S3 contents through GoToSocial instead of redirecting to a presigned URL"`

	StatusesMaxChars           int `name:"statuses-max-chars" usage:"Max permitted characters for posted statuses"`
	StatusesCWMaxChars         int `name:"statuses-cw-max-chars" usage:"Max permitted characters for content/spoiler warnings on statuses"`
	StatusesPollMaxOptions     int `name:"statuses-poll-max-options" usage:"Max amount of options permitted on a poll"`
	StatusesPollOptionMaxChars int `name:"statuses-poll-option-max-chars" usage:"Max amount of characters for a poll option"`
	StatusesMediaMaxFiles      int `name:"statuses-media-max-files" usage:"Maximum number of media files/attachments per status"`

	LetsEncryptEnabled      bool   `` /* 154-byte string literal not displayed */
	LetsEncryptPort         int    `` /* 141-byte string literal not displayed */
	LetsEncryptCertDir      string `name:"letsencrypt-cert-dir" usage:"Directory to store acquired letsencrypt certificates."`
	LetsEncryptEmailAddress string `` /* 137-byte string literal not displayed */

	TLSCertificateChain string `` /* 131-byte string literal not displayed */
	TLSCertificateKey   string `name:"tls-certificate-key" usage:"Filesystem path to the TLS private key"`

	OIDCEnabled          bool     `` /* 133-byte string literal not displayed */
	OIDCIdpName          string   `name:"oidc-idp-name" usage:"Name of the OIDC identity provider. Will be shown to the user when logging in."`
	OIDCSkipVerification bool     `` /* 182-byte string literal not displayed */
	OIDCIssuer           string   `` /* 169-byte string literal not displayed */
	OIDCClientID         string   `name:"oidc-client-id" usage:"ClientID of GoToSocial, as registered with the OIDC provider."`
	OIDCClientSecret     string   `name:"oidc-client-secret" usage:"ClientSecret of GoToSocial, as registered with the OIDC provider."`
	OIDCScopes           []string `name:"oidc-scopes" usage:"OIDC scopes."`
	OIDCLinkExisting     bool     `name:"oidc-link-existing" usage:"link existing user accounts to OIDC logins based on the stored email value"`
	OIDCAdminGroups      []string `name:"oidc-admin-groups" usage:"Membership of one of the listed groups makes someone a GtS admin"`

	SMTPHost               string `name:"smtp-host" usage:"Host of the smtp server. Eg., 'smtp.eu.mailgun.org'"`
	SMTPPort               int    `name:"smtp-port" usage:"Port of the smtp server. Eg., 587"`
	SMTPUsername           string `name:"smtp-username" usage:"Username to authenticate with the smtp server as. Eg., 'postmaster@mail.example.org'"`
	SMTPPassword           string `name:"smtp-password" usage:"Password to pass to the smtp server."`
	SMTPFrom               string `name:"smtp-from" usage:"Address to use as the 'from' field of the email. Eg., 'gotosocial@example.org'"`
	SMTPDiscloseRecipients bool   `` /* 180-byte string literal not displayed */

	SyslogEnabled  bool   `name:"syslog-enabled" usage:"Enable the syslog logging hook. Logs will be mirrored to the configured destination."`
	SyslogProtocol string `name:"syslog-protocol" usage:"Protocol to use when directing logs to syslog. Leave empty to connect to local syslog."`
	SyslogAddress  string `name:"syslog-address" usage:"Address:port to send syslog logs to. Leave empty to connect to local syslog."`

	AdvancedCookiesSamesite      string        `` /* 141-byte string literal not displayed */
	AdvancedRateLimitRequests    int           `` /* 138-byte string literal not displayed */
	AdvancedThrottlingMultiplier int           `` /* 132-byte string literal not displayed */
	AdvancedThrottlingRetryAfter time.Duration `name:"advanced-throttling-retry-after" usage:"Retry-After duration response to send for throttled requests."`

	// Cache configuration vars.
	Cache CacheConfiguration `name:"cache"`

	// TODO: move these elsewhere, these are more ephemeral vs long-running flags like above
	AdminAccountUsername  string `name:"username" usage:"the username to create/delete/etc"`
	AdminAccountEmail     string `name:"email" usage:"the email address of this account"`
	AdminAccountPassword  string `name:"password" usage:"the password to set for this account"`
	AdminTransPath        string `name:"path" usage:"the path of the file to import from/export to"`
	AdminMediaPruneDryRun bool   `name:"dry-run" usage:"perform a dry run and only log number of items eligible for pruning"`

	RequestIDHeader string `name:"request-id-header" usage:"Header to extract the Request ID from. Eg.,'X-Request-Id'"`
}

Configuration represents global GTS server runtime configuration.

Please note that if you update this struct's fields or tags, you will need to regenerate the global Getter/Setter helpers by running: `go run ./internal/config/gen/ -out ./internal/config/helpers.gen.go`

func (*Configuration) MarshalMap added in v0.3.5

func (cfg *Configuration) MarshalMap() (map[string]interface{}, error)

MarshalMap will marshal current Configuration into a map structure (useful for JSON/TOML/YAML).

type GTSCacheConfiguration added in v0.7.0

type GTSCacheConfiguration struct {
	AccountMaxSize   int           `name:"account-max-size"`
	AccountTTL       time.Duration `name:"account-ttl"`
	AccountSweepFreq time.Duration `name:"account-sweep-freq"`

	BlockMaxSize   int           `name:"block-max-size"`
	BlockTTL       time.Duration `name:"block-ttl"`
	BlockSweepFreq time.Duration `name:"block-sweep-freq"`

	DomainBlockMaxSize   int           `name:"domain-block-max-size"`
	DomainBlockTTL       time.Duration `name:"domain-block-ttl"`
	DomainBlockSweepFreq time.Duration `name:"domain-block-sweep-freq"`

	EmojiMaxSize   int           `name:"emoji-max-size"`
	EmojiTTL       time.Duration `name:"emoji-ttl"`
	EmojiSweepFreq time.Duration `name:"emoji-sweep-freq"`

	EmojiCategoryMaxSize   int           `name:"emoji-category-max-size"`
	EmojiCategoryTTL       time.Duration `name:"emoji-category-ttl"`
	EmojiCategorySweepFreq time.Duration `name:"emoji-category-sweep-freq"`

	FollowMaxSize   int           `name:"follow-max-size"`
	FollowTTL       time.Duration `name:"follow-ttl"`
	FollowSweepFreq time.Duration `name:"follow-sweep-freq"`

	FollowRequestMaxSize   int           `name:"follow-request-max-size"`
	FollowRequestTTL       time.Duration `name:"follow-request-ttl"`
	FollowRequestSweepFreq time.Duration `name:"follow-request-sweep-freq"`

	MediaMaxSize   int           `name:"media-max-size"`
	MediaTTL       time.Duration `name:"media-ttl"`
	MediaSweepFreq time.Duration `name:"media-sweep-freq"`

	MentionMaxSize   int           `name:"mention-max-size"`
	MentionTTL       time.Duration `name:"mention-ttl"`
	MentionSweepFreq time.Duration `name:"mention-sweep-freq"`

	NotificationMaxSize   int           `name:"notification-max-size"`
	NotificationTTL       time.Duration `name:"notification-ttl"`
	NotificationSweepFreq time.Duration `name:"notification-sweep-freq"`

	ReportMaxSize   int           `name:"report-max-size"`
	ReportTTL       time.Duration `name:"report-ttl"`
	ReportSweepFreq time.Duration `name:"report-sweep-freq"`

	StatusMaxSize   int           `name:"status-max-size"`
	StatusTTL       time.Duration `name:"status-ttl"`
	StatusSweepFreq time.Duration `name:"status-sweep-freq"`

	StatusFaveMaxSize   int           `name:"status-fave-max-size"`
	StatusFaveTTL       time.Duration `name:"status-fave-ttl"`
	StatusFaveSweepFreq time.Duration `name:"status-fave-sweep-freq"`

	TombstoneMaxSize   int           `name:"tombstone-max-size"`
	TombstoneTTL       time.Duration `name:"tombstone-ttl"`
	TombstoneSweepFreq time.Duration `name:"tombstone-sweep-freq"`

	UserMaxSize   int           `name:"user-max-size"`
	UserTTL       time.Duration `name:"user-ttl"`
	UserSweepFreq time.Duration `name:"user-sweep-freq"`

	WebfingerMaxSize   int           `name:"webfinger-max-size"`
	WebfingerTTL       time.Duration `name:"webfinger-ttl"`
	WebfingerSweepFreq time.Duration `name:"webfinger-sweep-freq"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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