Browse Source

Add pipeline definition structs

feature/add-pipeline-loading
Fabian Vowie 3 years ago
parent
commit
382720d242
No known key found for this signature in database GPG Key ID: C27317C33B27C410
  1. 28
      pipeline.go

28
pipeline.go

@ -0,0 +1,28 @@
package main
type PipelineType int
type PipelineStepType int
const (
Image PipelineType = iota
Video
)
const (
Resize PipelineStepType = iota
Compress
Encode
)
type Pipeline struct {
Name string
Type PipelineType
RemoveMetadata bool
Steps []Step
}
type Step struct {
Name string
Type PipelineStepType
}
Loading…
Cancel
Save