feat(aa): continue refractoring the aa structure.
This commit is contained in:
parent
8ef858ad35
commit
c97886d960
22 changed files with 160 additions and 182 deletions
|
|
@ -5,7 +5,7 @@
|
|||
package aa
|
||||
|
||||
type Unix struct {
|
||||
Rule
|
||||
RuleBase
|
||||
Qualifier
|
||||
Access string
|
||||
Type string
|
||||
|
|
@ -18,9 +18,9 @@ type Unix struct {
|
|||
PeerAddr string
|
||||
}
|
||||
|
||||
func newUnixFromLog(log map[string]string) *Unix {
|
||||
func newUnixFromLog(log map[string]string) Rule {
|
||||
return &Unix{
|
||||
Rule: newRuleFromLog(log),
|
||||
RuleBase: newRuleFromLog(log),
|
||||
Qualifier: newQualifierFromLog(log),
|
||||
Access: toAccess(log["requested_mask"]),
|
||||
Type: log["sock_type"],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue