Skip to content

Commit

Permalink
Create new struct for Spec with accepted formats property
Browse files Browse the repository at this point in the history
  • Loading branch information
baskarap committed Aug 27, 2019
1 parent d1725c3 commit ecd78ca
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions pkg/service/spec.go
@@ -0,0 +1,12 @@
package service

type Spec struct {
// Scope defines a scope for the image manipulation job, it can be used for logging/mertrics collection purposes
Scope string
// ImageData holds the actual image contents to processed
ImageData []byte
// Params hold the key-value pairs for the processing job and tells the manipulator what to do with the image
Params map[string]string
// AcceptedFormats have the information whether darkroom can return the image using webp or not
AcceptedFormats []string
}

0 comments on commit ecd78ca

Please sign in to comment.