-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
clear_send_headers_gen.go
40 lines (35 loc) · 1000 Bytes
/
clear_send_headers_gen.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
37
38
39
40
// +build !generate
package hit
import errortrace "github.com/Eun/go-hit/errortrace"
// ⚠️⚠️⚠️ This file was autogenerated by generators/clear/clear ⚠️⚠️⚠️ //
// IClearSendHeaders provides methods to clear steps.
type IClearSendHeaders interface {
IStep
// Add clears all matching Add steps
Add(value ...interface{}) IStep
}
type clearSendHeaders struct {
cp callPath
tr *errortrace.ErrorTrace
}
func newClearSendHeaders(cp callPath) IClearSendHeaders {
return &clearSendHeaders{cp: cp, tr: ett.Prepare()}
}
func (v *clearSendHeaders) trace() *errortrace.ErrorTrace {
return v.tr
}
func (*clearSendHeaders) when() StepTime {
return cleanStep
}
func (v *clearSendHeaders) callPath() callPath {
return v.cp
}
func (v *clearSendHeaders) exec(hit *hitImpl) error {
if err := removeSteps(hit, v.callPath()); err != nil {
return err
}
return nil
}
func (v *clearSendHeaders) Add(value ...interface{}) IStep {
return removeStep(v.callPath().Push("Add", value))
}