Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HitsMetrics ¶
type HitsMetrics struct {
// contains filtered or unexported fields
}
func NewTargetHitsMetrics ¶
func NewTargetHitsMetrics() (*HitsMetrics, error)
func (*HitsMetrics) Collect ¶
func (hm *HitsMetrics) Collect() error
Collect collects the metrics for the all the target rules.
func (*HitsMetrics) Delete ¶
func (hm *HitsMetrics) Delete() error
func (*HitsMetrics) Register ¶
func (hm *HitsMetrics) Register(id int, target *nspAPI.Target) error
Register adds a target as nftables rule in the postrouting chain
func (*HitsMetrics) Unregister ¶
func (hm *HitsMetrics) Unregister(id int) error
Unregister removes the nftables rule of a target from the postrouting chain
Click to show internal directories.
Click to hide internal directories.