Skip to content

Commit 7404cbf

Browse files
build: Fix linter issues with missing comments
1 parent 9e58483 commit 7404cbf

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

config.go

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ func (c *ModuleConfig) AllowUnknownContentLength() bool {
111111
return c.allowUnknownContentLength
112112
}
113113

114-
// returns the configuration value
114+
// AltResponseCodes returns the configuration value
115115
func (c *ModuleConfig) AltResponseCodes() []int {
116116
if len(c.altResponseCodes) == 0 {
117117
return nil
@@ -143,14 +143,17 @@ func (c *ModuleConfig) HeaderExtractor() func(r *http.Request) (http.Header, err
143143
return c.headerExtractor
144144
}
145145

146+
// Inspector returns the inspector
146147
func (c *ModuleConfig) Inspector() Inspector {
147148
return c.inspector
148149
}
149150

151+
// InspectorInit returns the inspector init function
150152
func (c *ModuleConfig) InspectorInit() InspectorInitFunc {
151153
return c.inspInit
152154
}
153155

156+
// InspectorFini returns the inspector fini function
154157
func (c *ModuleConfig) InspectorFini() InspectorFiniFunc {
155158
return c.inspFini
156159
}
@@ -165,7 +168,7 @@ func (c *ModuleConfig) ModuleIdentifier() string {
165168
return c.moduleIdentifier
166169
}
167170

168-
// returns the configuration value
171+
// RPCAddress returns the configuration value
169172
func (c *ModuleConfig) RPCAddress() string {
170173
return c.rpcAddress
171174
}
@@ -335,6 +338,7 @@ func ServerIdentifier(id string) ModuleConfigOption {
335338
}
336339
}
337340

341+
// FromModuleConfig allow cloning the config
338342
func FromModuleConfig(mcfg *ModuleConfig) ModuleConfigOption {
339343
return func(c *ModuleConfig) error {
340344
*c = *mcfg

0 commit comments

Comments
 (0)