Documentation
¶
Index ¶
- func ImageProcessor(client *hatchet.Client) *hatchet.StandaloneTask
- func ProcessImage(imageURL string, filters []string) (map[string]interface{}, error)
- func RunMergentTask() error
- func RunningTasks(client *hatchet.Client) error
- type ImageProcessInput
- type ImageProcessOutput
- type MergentRequest
- type MergentResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ImageProcessor ¶
func ImageProcessor(client *hatchet.Client) *hatchet.StandaloneTask
func ProcessImage ¶
ProcessImage simulates image processing
func RunMergentTask ¶
func RunMergentTask() error
func RunningTasks ¶
Types ¶
type ImageProcessInput ¶
type ImageProcessInput struct {
ImageURL string `json:"image_url"`
Filters []string `json:"filters"`
}
> After (Hatchet)
type ImageProcessOutput ¶
type MergentRequest ¶
> Before (Mergent)
type MergentResponse ¶
type MergentResponse struct {
Success bool `json:"success"`
ProcessedURL string `json:"processed_url"`
}
func ProcessImageMergent ¶
func ProcessImageMergent(req MergentRequest) (*MergentResponse, error)
Click to show internal directories.
Click to hide internal directories.