init HttpBommer 🍰

This commit is contained in:
debugtalk
2021-09-19 13:20:22 +08:00
parent 6f824ea1cf
commit 6b7955a955
15 changed files with 561 additions and 1 deletions

25
extract.go Normal file
View File

@@ -0,0 +1,25 @@
package httpboomer
// implements IStep interface
type StepRequestExtraction struct {
*TStep
}
func (req *StepRequestExtraction) WithJmesPath(jmesPath string, varName string) *StepRequestExtraction {
req.TStep.Extract[varName] = jmesPath
return req
}
func (req *StepRequestExtraction) Validate() *StepRequestValidation {
return &StepRequestValidation{
TStep: req.TStep,
}
}
func (req *StepRequestExtraction) ToStruct() *TStep {
return req.TStep
}
func (req *StepRequestExtraction) Run() error {
return req.TStep.Run()
}