refractor(aa): rename base struct from RuleBase to Base
This commit is contained in:
parent
5b73923385
commit
272072d2a5
24 changed files with 150 additions and 150 deletions
|
|
@ -58,7 +58,7 @@ func (r AddressExpr) Compare(other AddressExpr) int {
|
|||
}
|
||||
|
||||
type Network struct {
|
||||
RuleBase
|
||||
Base
|
||||
Qualifier
|
||||
AddressExpr
|
||||
Domain string
|
||||
|
|
@ -80,7 +80,7 @@ func newNetwork(q Qualifier, rule rule) (Rule, error) {
|
|||
}
|
||||
}
|
||||
return &Network{
|
||||
RuleBase: newBase(rule),
|
||||
Base: newBase(rule),
|
||||
Qualifier: q,
|
||||
Domain: domain,
|
||||
Type: nType,
|
||||
|
|
@ -90,7 +90,7 @@ func newNetwork(q Qualifier, rule rule) (Rule, error) {
|
|||
|
||||
func newNetworkFromLog(log map[string]string) Rule {
|
||||
return &Network{
|
||||
RuleBase: newBaseFromLog(log),
|
||||
Base: newBaseFromLog(log),
|
||||
Qualifier: newQualifierFromLog(log),
|
||||
AddressExpr: newAddressExprFromLog(log),
|
||||
Domain: log["family"],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue