-
Notifications
You must be signed in to change notification settings - Fork 0
/
paramgen_proc.go
36 lines (32 loc) · 968 Bytes
/
paramgen_proc.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// Code generated by paramgen. DO NOT EDIT.
// Source: github.com/ConduitIO/conduit-commons/tree/main/paramgen
package processorname
import (
"github.com/conduitio/conduit-commons/config"
)
const (
ProcessorConfigField = "field"
ProcessorConfigThreshold = "threshold"
)
func (ProcessorConfig) Parameters() map[string]config.Parameter {
return map[string]config.Parameter{
ProcessorConfigField: {
Default: "",
Description: "Field is the target field that will be set.",
Type: config.ParameterTypeString,
Validations: []config.Validation{
config.ValidationRequired{},
config.ValidationExclusion{List: []string{".Position"}},
},
},
ProcessorConfigThreshold: {
Default: "",
Description: "Threshold is the threshold for filtering the record.",
Type: config.ParameterTypeInt,
Validations: []config.Validation{
config.ValidationRequired{},
config.ValidationGreaterThan{V: 0},
},
},
}
}