config

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: May 18, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	AllowedOrgs              []string      `split_words:"true"`
	CacheEviction            time.Duration `split_words:"true" default:"1h"`
	PresignTTL               time.Duration `split_words:"true" default:"1h"`
	ManifestSaveInterval     time.Duration `split_words:"true" default:"5m"`
	ShutdownTimeout          time.Duration `split_words:"true" default:"60s"`
	UpstreamHost             string        `split_words:"true" required:"true"`
	UpstreamToken            string        `split_words:"true"`
	S3Bucket                 string        `split_words:"true" required:"true"`
	S3Concurrency            int           `split_words:"true" default:"64"`
	DebugMode                bool          `split_words:"true" default:"false"`
	S3UseAccelerate          bool          `split_words:"true" default:"false"`
	EnablePrometheusExporter bool          `split_words:"true" default:"false"`
}

func GetConfig

func GetConfig() (*Config, error)

Jump to

Keyboard shortcuts

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