-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
clear_send_body_gen.go
134 lines (128 loc) · 4.72 KB
/
clear_send_body_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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
// +build !generate
package hit
import (
"io"
errortrace "github.com/Eun/go-hit/errortrace"
)
// ⚠️⚠️⚠️ This file was autogenerated by generators/clear/clear ⚠️⚠️⚠️ //
// IClearSendBody provides methods to clear steps.
type IClearSendBody interface {
IStep
// Bool clears all matching Bool steps
Bool(value ...bool) IStep
// Bytes clears all matching Bytes steps
Bytes(value ...[]uint8) IStep
// Float32 clears all matching Float32 steps
Float32(value ...float32) IStep
// Float64 clears all matching Float64 steps
Float64(value ...float64) IStep
// FormValues clears all matching FormValues steps
FormValues(value ...string) IClearSendFormValues
// Int clears all matching Int steps
Int(value ...int) IStep
// Int16 clears all matching Int16 steps
Int16(value ...int16) IStep
// Int32 clears all matching Int32 steps
Int32(value ...int32) IStep
// Int64 clears all matching Int64 steps
Int64(value ...int64) IStep
// Int8 clears all matching Int8 steps
Int8(value ...int8) IStep
// JSON clears all matching JSON steps
JSON(value ...interface{}) IStep
// Reader clears all matching Reader steps
Reader(value ...io.Reader) IStep
// String clears all matching String steps
String(value ...string) IStep
// Uint clears all matching Uint steps
Uint(value ...uint) IStep
// Uint16 clears all matching Uint16 steps
Uint16(value ...uint16) IStep
// Uint32 clears all matching Uint32 steps
Uint32(value ...uint32) IStep
// Uint64 clears all matching Uint64 steps
Uint64(value ...uint64) IStep
// Uint8 clears all matching Uint8 steps
Uint8(value ...uint8) IStep
// XML clears all matching XML steps
XML(value ...interface{}) IStep
}
type clearSendBody struct {
cp callPath
tr *errortrace.ErrorTrace
}
func newClearSendBody(cp callPath) IClearSendBody {
return &clearSendBody{cp: cp, tr: ett.Prepare()}
}
func (v *clearSendBody) trace() *errortrace.ErrorTrace {
return v.tr
}
func (*clearSendBody) when() StepTime {
return cleanStep
}
func (v *clearSendBody) callPath() callPath {
return v.cp
}
func (v *clearSendBody) exec(hit *hitImpl) error {
if err := removeSteps(hit, v.callPath()); err != nil {
return err
}
return nil
}
func (v *clearSendBody) Bool(value ...bool) IStep {
return removeStep(v.callPath().Push("Bool", boolSliceToInterfaceSlice(value)))
}
func (v *clearSendBody) Bytes(value ...[]uint8) IStep {
return removeStep(v.callPath().Push("Bytes", uint8SliceSliceToInterfaceSlice(value)))
}
func (v *clearSendBody) Float32(value ...float32) IStep {
return removeStep(v.callPath().Push("Float32", float32SliceToInterfaceSlice(value)))
}
func (v *clearSendBody) Float64(value ...float64) IStep {
return removeStep(v.callPath().Push("Float64", float64SliceToInterfaceSlice(value)))
}
func (v *clearSendBody) FormValues(value ...string) IClearSendFormValues {
return newClearSendFormValues(v.callPath().Push("FormValues", stringSliceToInterfaceSlice(value)))
}
func (v *clearSendBody) Int(value ...int) IStep {
return removeStep(v.callPath().Push("Int", intSliceToInterfaceSlice(value)))
}
func (v *clearSendBody) Int16(value ...int16) IStep {
return removeStep(v.callPath().Push("Int16", int16SliceToInterfaceSlice(value)))
}
func (v *clearSendBody) Int32(value ...int32) IStep {
return removeStep(v.callPath().Push("Int32", int32SliceToInterfaceSlice(value)))
}
func (v *clearSendBody) Int64(value ...int64) IStep {
return removeStep(v.callPath().Push("Int64", int64SliceToInterfaceSlice(value)))
}
func (v *clearSendBody) Int8(value ...int8) IStep {
return removeStep(v.callPath().Push("Int8", int8SliceToInterfaceSlice(value)))
}
func (v *clearSendBody) JSON(value ...interface{}) IStep {
return removeStep(v.callPath().Push("JSON", value))
}
func (v *clearSendBody) Reader(value ...io.Reader) IStep {
return removeStep(v.callPath().Push("Reader", readerSliceToInterfaceSlice(value)))
}
func (v *clearSendBody) String(value ...string) IStep {
return removeStep(v.callPath().Push("String", stringSliceToInterfaceSlice(value)))
}
func (v *clearSendBody) Uint(value ...uint) IStep {
return removeStep(v.callPath().Push("Uint", uintSliceToInterfaceSlice(value)))
}
func (v *clearSendBody) Uint16(value ...uint16) IStep {
return removeStep(v.callPath().Push("Uint16", uint16SliceToInterfaceSlice(value)))
}
func (v *clearSendBody) Uint32(value ...uint32) IStep {
return removeStep(v.callPath().Push("Uint32", uint32SliceToInterfaceSlice(value)))
}
func (v *clearSendBody) Uint64(value ...uint64) IStep {
return removeStep(v.callPath().Push("Uint64", uint64SliceToInterfaceSlice(value)))
}
func (v *clearSendBody) Uint8(value ...uint8) IStep {
return removeStep(v.callPath().Push("Uint8", uint8SliceToInterfaceSlice(value)))
}
func (v *clearSendBody) XML(value ...interface{}) IStep {
return removeStep(v.callPath().Push("XML", value))
}