mergent

package
v0.73.70 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ImageProcessor

func ImageProcessor(client *hatchet.Client) *hatchet.StandaloneTask

func ProcessImage

func ProcessImage(imageURL string, filters []string) (map[string]interface{}, error)

ProcessImage simulates image processing

func RunMergentTask

func RunMergentTask() error

func RunningTasks

func RunningTasks(client *hatchet.Client) error

Types

type ImageProcessInput

type ImageProcessInput struct {
	ImageURL string   `json:"image_url"`
	Filters  []string `json:"filters"`
}

> After (Hatchet)

type ImageProcessOutput

type ImageProcessOutput struct {
	ProcessedURL string `json:"processed_url"`
	Metadata     struct {
		Size           int      `json:"size"`
		Format         string   `json:"format"`
		AppliedFilters []string `json:"applied_filters"`
	} `json:"metadata"`
}

type MergentRequest

type MergentRequest struct {
	ImageURL string   `json:"image_url"`
	Filters  []string `json:"filters"`
}

> Before (Mergent)

type MergentResponse

type MergentResponse struct {
	Success      bool   `json:"success"`
	ProcessedURL string `json:"processed_url"`
}

func ProcessImageMergent

func ProcessImageMergent(req MergentRequest) (*MergentResponse, error)

Jump to

Keyboard shortcuts

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