The previous pipeline model required a lot of setup and abstracted away the processing of records. By passing a HandlerFunc to the consumer we keep the business logic of processing of records closer to the use of the consumer. * Add refactoring note and SHA to README
10 lines
169 B
Go
10 lines
169 B
Go
package connector
|
|
|
|
type Entry struct {
|
|
Url string `json:"url"`
|
|
Mandatory bool `json:"mandatory"`
|
|
}
|
|
|
|
type Manifest struct {
|
|
Entries []Entry `json:"entries"`
|
|
}
|