hammer

module
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: Apache-2.0

README

hammer

Hammer - Simple Thumbnail Generation Service (for images and videos).

Dependencies

  • Consul
  • RabbitMQ
  • mini-fstore
  • ffmpeg (for generating video thumbnail)

Updates

  • Since v0.0.5, hammer nolonger uses libvip (external dependency) to compress images. It now uses github.com/disintegration/gift instead, it might be slower and more resource intensive, but it's written purely in Go.

The Sequence

sequenceDiagram

    participant b as backend
    participant m as mini-fstore
    participant h as hammer

    b->>m:Upload image
    b--)h:(MQ) trigger image compression
    h->>m:download original file
    h->>h:compress image
    h->>m:upload compressed image
    h--)b:(MQ) reply file_id of the compressed image

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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