internal/strategies/remote_addresss.go
Method remoteAddressStrategy.IsEnabled
has 6 return statements (exceeds 4 allowed). Open
Open
func (s remoteAddressStrategy) IsEnabled(params map[string]interface{}, ctx *context.Context) bool {
value, found := params[strategy.ParamIps]
if !found {
return false
}
exported func NewRemoteAddressStrategy returns unexported type *strategies.remoteAddressStrategy, which can be annoying to use Open
Open
func NewRemoteAddressStrategy() *remoteAddressStrategy {
- Exclude checks
exported function NewRemoteAddressStrategy should have comment or be unexported Open
Open
func NewRemoteAddressStrategy() *remoteAddressStrategy {
- Exclude checks