Skip to content

Commit

Permalink
build: Fix linter issues with missing comments
Browse files Browse the repository at this point in the history
  • Loading branch information
brectanus-sigsci committed Apr 1, 2020
1 parent 9e58483 commit 7404cbf
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ func (c *ModuleConfig) AllowUnknownContentLength() bool {
return c.allowUnknownContentLength
}

// returns the configuration value
// AltResponseCodes returns the configuration value
func (c *ModuleConfig) AltResponseCodes() []int {
if len(c.altResponseCodes) == 0 {
return nil
Expand Down Expand Up @@ -143,14 +143,17 @@ func (c *ModuleConfig) HeaderExtractor() func(r *http.Request) (http.Header, err
return c.headerExtractor
}

// Inspector returns the inspector
func (c *ModuleConfig) Inspector() Inspector {
return c.inspector
}

// InspectorInit returns the inspector init function
func (c *ModuleConfig) InspectorInit() InspectorInitFunc {
return c.inspInit
}

// InspectorFini returns the inspector fini function
func (c *ModuleConfig) InspectorFini() InspectorFiniFunc {
return c.inspFini
}
Expand All @@ -165,7 +168,7 @@ func (c *ModuleConfig) ModuleIdentifier() string {
return c.moduleIdentifier
}

// returns the configuration value
// RPCAddress returns the configuration value
func (c *ModuleConfig) RPCAddress() string {
return c.rpcAddress
}
Expand Down Expand Up @@ -335,6 +338,7 @@ func ServerIdentifier(id string) ModuleConfigOption {
}
}

// FromModuleConfig allow cloning the config
func FromModuleConfig(mcfg *ModuleConfig) ModuleConfigOption {
return func(c *ModuleConfig) error {
*c = *mcfg
Expand Down

0 comments on commit 7404cbf

Please sign in to comment.