mirror of
https://github.com/netbirdio/netbird.git
synced 2024-11-29 19:43:57 +01:00
17 lines
231 B
Go
17 lines
231 B
Go
|
package nftables
|
||
|
|
||
|
import (
|
||
|
"github.com/google/nftables"
|
||
|
)
|
||
|
|
||
|
// Rule to handle management of rules
|
||
|
type Rule struct {
|
||
|
*nftables.Rule
|
||
|
id string
|
||
|
}
|
||
|
|
||
|
// GetRuleID returns the rule id
|
||
|
func (r *Rule) GetRuleID() string {
|
||
|
return r.id
|
||
|
}
|