Documentation ¶
Index ¶
- func CollectMetrics(options ...option) error
- func New(flow *nspAPI.Flow, lb types.NFQueueLoadBalancer) (types.Flow, error)
- func WithConduitName(conduitName string) option
- func WithGetFlowStatsFunc(getFlowStatsFunc GetFlowStats) option
- func WithHostname(hostname string) option
- func WithMeter(meter metric.Meter) option
- func WithTrenchName(trenchName string) option
- type Flow
- type FlowStat
- type GetFlowStats
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CollectMetrics ¶ added in v1.0.13
func CollectMetrics(options ...option) error
CollectMetrics collects the metrics for the flows. This function will continue to run until the context is cancel.
func WithConduitName ¶ added in v1.0.13
func WithConduitName(conduitName string) option
WithConduitName specifies the conduit attribute.
func WithGetFlowStatsFunc ¶ added in v1.0.13
func WithGetFlowStatsFunc(getFlowStatsFunc GetFlowStats) option
WithGetFlowStatsFunc specifies which function will be used to get the flow metrics.
func WithHostname ¶ added in v1.0.13
func WithHostname(hostname string) option
WithHostname specifies the hostname attribute.
func WithTrenchName ¶ added in v1.0.13
func WithTrenchName(trenchName string) option
WithTrenchName specifies the trench attribute.
Types ¶
type GetFlowStats ¶ added in v1.0.13
Click to show internal directories.
Click to hide internal directories.