@@ -111,7 +111,7 @@ func (c *ModuleConfig) AllowUnknownContentLength() bool {
111
111
return c .allowUnknownContentLength
112
112
}
113
113
114
- // returns the configuration value
114
+ // AltResponseCodes returns the configuration value
115
115
func (c * ModuleConfig ) AltResponseCodes () []int {
116
116
if len (c .altResponseCodes ) == 0 {
117
117
return nil
@@ -143,14 +143,17 @@ func (c *ModuleConfig) HeaderExtractor() func(r *http.Request) (http.Header, err
143
143
return c .headerExtractor
144
144
}
145
145
146
+ // Inspector returns the inspector
146
147
func (c * ModuleConfig ) Inspector () Inspector {
147
148
return c .inspector
148
149
}
149
150
151
+ // InspectorInit returns the inspector init function
150
152
func (c * ModuleConfig ) InspectorInit () InspectorInitFunc {
151
153
return c .inspInit
152
154
}
153
155
156
+ // InspectorFini returns the inspector fini function
154
157
func (c * ModuleConfig ) InspectorFini () InspectorFiniFunc {
155
158
return c .inspFini
156
159
}
@@ -165,7 +168,7 @@ func (c *ModuleConfig) ModuleIdentifier() string {
165
168
return c .moduleIdentifier
166
169
}
167
170
168
- // returns the configuration value
171
+ // RPCAddress returns the configuration value
169
172
func (c * ModuleConfig ) RPCAddress () string {
170
173
return c .rpcAddress
171
174
}
@@ -335,6 +338,7 @@ func ServerIdentifier(id string) ModuleConfigOption {
335
338
}
336
339
}
337
340
341
+ // FromModuleConfig allow cloning the config
338
342
func FromModuleConfig (mcfg * ModuleConfig ) ModuleConfigOption {
339
343
return func (c * ModuleConfig ) error {
340
344
* c = * mcfg
0 commit comments