cfg

package
v0.0.0-...-abac166 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

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

	ShareThrottleFactor int64
	ShareThrottleUnit   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

	SharesPerPost 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
	SharesTTL         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.

Jump to

Keyboard shortcuts

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