engine

package
v0.33.0 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2025 License: MIT Imports: 12 Imported by: 0

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)

Jump to

Keyboard shortcuts

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