Documentation ¶
Overview ¶
Package cfg defines the tootik configuration file format and defaults.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { DatabaseOptions string RegistrationInterval time.Duration MaxPostsLength int MaxPostsPerDay int64 PostThrottleFactor int64 PostThrottleUnit time.Duration EditThrottleFactor float64 EditThrottleUnit time.Duration PollMaxOptions int PollDuration time.Duration MaxDisplayNameLength int MaxBioLength int MaxAvatarSize int64 MaxAvatarWidth int MaxAvatarHeight int AvatarWidth int AvatarHeight int MinActorEditInterval time.Duration MaxFollowsPerUser int FollowAcceptTimeout time.Duration MaxBookmarksPerUser int MinBookmarkInterval time.Duration PostsPerPage int RepliesPerPage int MaxOffset int MaxRequestBodySize int64 MaxRequestAge time.Duration MaxResponseBodySize int64 CompactViewMaxRunes int CompactViewMaxLines int CacheUpdateTimeout time.Duration GeminiRequestTimeout time.Duration GopherRequestTimeout time.Duration LineWidth int GuppyRequestTimeout time.Duration MaxGuppySessions int GuppyChunkTimeout time.Duration MaxSentGuppyChunks int DeliveryBatchSize int DeliveryRetryInterval int64 MaxDeliveryAttempts int DeliveryTimeout time.Duration DeliveryWorkers int DeliveryWorkerBuffer int OutboxPollingInterval time.Duration MaxActivitiesQueueSize int ActivitiesBatchSize int ActivitiesPollingInterval time.Duration ActivitiesBatchDelay time.Duration ActivityProcessingTimeout time.Duration MaxForwardingDepth int MaxRecipients int MinActorAge time.Duration ResolverCacheTTL time.Duration ResolverRetryInterval time.Duration ResolverMaxIdleConns int ResolverIdleConnTimeout time.Duration MaxInstanceRecoveryTime time.Duration MaxResolverRequests int FollowersSyncBatchSize int FollowersSyncInterval time.Duration FeedUpdateInterval time.Duration NotesTTL time.Duration InvisiblePostsTTL time.Duration DeliveryTTL time.Duration ActorTTL time.Duration FeedTTL time.Duration }
Config represents a tootik configuration file.
func (*Config) FillDefaults ¶
func (c *Config) FillDefaults()
FillDefaults replaces missing or invalid settings with defaults.
Click to show internal directories.
Click to hide internal directories.