Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AdaptiveConfig ¶
type AdaptiveConfig struct {
Enabled bool
TargetSizeBytes int64 // desired maximum output size
MinQuality int // floor to prevent over-compression; default 30
MaxQuality int // ceiling; default 95
StepSize int // quality decrement per iteration; default 5
}
AdaptiveConfig controls the adaptive compression algorithm.
type Config ¶
type Config struct {
// Worker pool controls.
WorkerCount int // default: runtime.NumCPU()
QueueSize int // max queued jobs before backpressure; default: 256
JobTimeout time.Duration
// Retry.
MaxRetries int
RetryDelay time.Duration
// Default encode options applied when a pipeline step does not override.
DefaultQuality int // 1-100; default 85
DefaultFormat string
// Streaming / memory limits.
MaxImageBytes int64 // 0 = no limit
ChunkSize int // streaming chunk size in bytes; default 32 KiB
// Storage.
Storage StorageBackend
Local LocalConfig
S3 S3Config
// Adaptive compression.
AdaptiveCompression AdaptiveConfig
// Logging / metrics.
LogLevel string // "debug", "info", "warn", "error"
}
Config is the top-level configuration struct. All fields have safe defaults so callers can start with Config{} and override only what they need.
type LocalConfig ¶
LocalConfig configures the local filesystem storage adapter.
type S3Config ¶
type S3Config struct {
Bucket string
Region string
Endpoint string // optional custom endpoint (MinIO, etc.)
AccessKeyID string
SecretAccessKey string
UsePathStyle bool
}
S3Config configures the AWS S3 storage adapter.
type StorageBackend ¶
type StorageBackend string
StorageBackend selects the storage adapter.
const ( StorageLocal StorageBackend = "local" StorageS3 StorageBackend = "s3" )
Click to show internal directories.
Click to hide internal directories.