Micro-service for file storage and processing written in Go
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
481 B

  1. package pipelines
  2. type IExecutableStep interface {
  3. Execute()
  4. }
  5. // Resize image
  6. type ResizeImageStep struct {
  7. Step
  8. Options struct {
  9. Width int `json:"width"`
  10. Height int `json:"height"`
  11. Upscale bool `json:"upscale"`
  12. } `json:"options"`
  13. }
  14. func (s ResizeImageStep) Execute() {
  15. // TODO
  16. }
  17. // Compress image
  18. type CompressImageStep struct {
  19. Step
  20. Options struct {
  21. Quality int `json:"quality"`
  22. } `json:"options"`
  23. }
  24. func (s CompressImageStep) Execute() {
  25. // TODO
  26. }