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.

28 lines
349 B

  1. package main
  2. type PipelineType int
  3. type PipelineStepType int
  4. const (
  5. Image PipelineType = iota
  6. Video
  7. )
  8. const (
  9. Resize PipelineStepType = iota
  10. Compress
  11. Encode
  12. )
  13. type Pipeline struct {
  14. Name string
  15. Type PipelineType
  16. RemoveMetadata bool
  17. Steps []Step
  18. }
  19. type Step struct {
  20. Name string
  21. Type PipelineStepType
  22. }