 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Agent ¶ added in v0.21.0
type Agent struct {
	common.RWMutex
	UUID       string
	Addr       string
	Port       int
	FlowTable  *flow.Table
	Conn       *net.UDPConn
	BPFFilter  string
	HeaderSize uint32
}
    Agent describes SFlow agent probe
func NewAgent ¶ added in v0.21.0
func NewAgent(u string, a *common.ServiceAddress, ft *flow.Table, bpfFilter string, headerSize uint32) *Agent
NewAgent creates a new sFlow agent which will populate the given flowtable
func (*Agent) GetTarget ¶ added in v0.21.0
GetTarget returns the current used connection
type AgentAllocator ¶ added in v0.21.0
AgentAllocator describes an SFlow agent allocator to manage multiple SFlow agent probe
func NewAgentAllocator ¶ added in v0.21.0
func NewAgentAllocator() (*AgentAllocator, error)
NewAgentAllocator creates a new sFlow agent allocator
func (*AgentAllocator) Alloc ¶ added in v0.21.0
func (a *AgentAllocator) Alloc(uuid string, ft *flow.Table, bpfFilter string, headerSize uint32, addr *common.ServiceAddress) (agent *Agent, _ error)
Alloc allocates a new sFlow agent
func (*AgentAllocator) Release ¶ added in v0.21.0
func (a *AgentAllocator) Release(uuid string)
Release a sFlow agent
func (*AgentAllocator) ReleaseAll ¶ added in v0.21.0
func (a *AgentAllocator) ReleaseAll()
ReleaseAll sFlow agents
       Source Files
      ¶
      Source Files
      ¶
    
- agent.go
 Click to show internal directories. 
   Click to hide internal directories.