Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IdleCleanupManager ¶ added in v0.33.0
type IdleCleanupManager struct {
// contains filtered or unexported fields
}
IdleCleanupManager manages memory cleanup during idle periods It tracks image processing activity and triggers libvips cache cleanup when the system has been idle for a configured duration
func NewIdleCleanupManager ¶ added in v0.33.0
func NewIdleCleanupManager(enabled bool, timeoutMinutes int) *IdleCleanupManager
NewIdleCleanupManager creates a new IdleCleanupManager timeoutMinutes specifies how many minutes of inactivity before cleanup
func (*IdleCleanupManager) GetCleanupCount ¶ added in v0.33.0
func (m *IdleCleanupManager) GetCleanupCount() int64
GetCleanupCount returns the number of cleanup operations performed Useful for monitoring and metrics
func (*IdleCleanupManager) RecordActivity ¶ added in v0.33.0
func (m *IdleCleanupManager) RecordActivity()
RecordActivity updates the last activity timestamp This is called on every image transform and must be very fast (lock-free)
func (*IdleCleanupManager) Start ¶ added in v0.33.0
func (m *IdleCleanupManager) Start()
Start launches the background cleanup goroutine
func (*IdleCleanupManager) Stop ¶ added in v0.33.0
func (m *IdleCleanupManager) Stop()
Stop gracefully shuts down the cleanup goroutine
type ImageEngine ¶
type ImageEngine struct {
// contains filtered or unexported fields
}
ImageEngine is main struct that is responding for image processing
func NewImageEngine ¶
func NewImageEngine(res *response.Response) *ImageEngine
NewImageEngine create instance of ImageEngine with source file that should be processed
func (*ImageEngine) Process ¶
func (c *ImageEngine) Process(obj *object.FileObject, trans []transforms.Transforms) (*response.Response, error)
Process main ImageEngine function that create new image (stored in response object)