This repository has been archived on 2024-09-06. You can view files and clone it, but cannot push or open issues or pull requests.
2023-01-09 21:12:13 +08:00

31 lines
388 B
Go

package common
import (
"errors"
)
var (
errPayload = errors.New("payloadRule error")
noResolve = "no-resolve"
)
type Base struct {
}
func (b *Base) ShouldFindProcess() bool {
return false
}
func (b *Base) ShouldResolveIP() bool {
return false
}
func HasNoResolve(params []string) bool {
for _, p := range params {
if p == noResolve {
return true
}
}
return false
}