Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FlowTracer ¶
type FlowTracer struct {
// contains filtered or unexported fields
}
FlowTracer reads and forwards the Flows from the Transmission Control, for a given interface.
func NewFlowTracer ¶
func NewFlowTracer(iface string, sampling uint32) *FlowTracer
NewFlowTracer fo a given interface type
func (*FlowTracer) Register ¶
func (m *FlowTracer) Register() error
Register and links the eBPF tracer into the system. The program should invoke Unregister before exiting.
func (*FlowTracer) Trace ¶
func (m *FlowTracer) Trace(ctx context.Context, forwardFlows chan<- *flow.Record)
Trace and forward the read flows until the passed context is Done
func (*FlowTracer) Unregister ¶
func (m *FlowTracer) Unregister() error
Unregister the eBPF tracer from the system.
Click to show internal directories.
Click to hide internal directories.