Browse Source
Add pipeline definition structs
feature/add-pipeline-loading
Fabian Vowie
3 years ago
No known key found for this signature in database
GPG Key ID: C27317C33B27C410
1 changed files with
28 additions and
0 deletions
-
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 |
|
|
|
} |
|
|
|
|