0ebb8a21a1
Clean Up Testing and Linting * somescriptcleanup * mostgolangci * deplatest * imageversions * usingscratch * movedqueuefrtesting * finishedunittesting * linting * taskfilecontext
25 lines
458 B
Go
25 lines
458 B
Go
package contextfull
|
|
|
|
import (
|
|
"context"
|
|
"errors"
|
|
queryprocessor "queryorchestration/internal/queryProcessor"
|
|
"queryorchestration/internal/result"
|
|
)
|
|
|
|
type Extractor struct {
|
|
}
|
|
|
|
func NewExtractor() Extractor {
|
|
return Extractor{}
|
|
}
|
|
|
|
func (e Extractor) Process(ctx context.Context, query *queryprocessor.Query, values []result.Value) (string, error) {
|
|
if len(values) > 0 {
|
|
return "", errors.New("no requirements expected")
|
|
}
|
|
// TODO
|
|
|
|
return "", nil
|
|
}
|