Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type SFlowAgent ¶
type SFlowAgent struct {
UUID string
Addr string
Port int
FlowTable *flow.Table
Conn *net.UDPConn
BPFFilter string
}
func NewSFlowAgent ¶
func (*SFlowAgent) GetTarget ¶
func (sfa *SFlowAgent) GetTarget() string
func (*SFlowAgent) Start ¶
func (sfa *SFlowAgent) Start()
func (*SFlowAgent) Stop ¶
func (sfa *SFlowAgent) Stop()
type SFlowAgentAllocator ¶ added in v0.3.0
type SFlowAgentAllocator struct {
sync.RWMutex
Addr string
// contains filtered or unexported fields
}
func NewSFlowAgentAllocator ¶ added in v0.3.0
func NewSFlowAgentAllocator() (*SFlowAgentAllocator, error)
func (*SFlowAgentAllocator) Alloc ¶ added in v0.3.0
func (a *SFlowAgentAllocator) Alloc(uuid string, ft *flow.Table, bpfFilter string) (agent *SFlowAgent, _ error)
func (*SFlowAgentAllocator) Release ¶ added in v0.3.0
func (a *SFlowAgentAllocator) Release(uuid string)
func (*SFlowAgentAllocator) ReleaseAll ¶ added in v0.3.0
func (a *SFlowAgentAllocator) ReleaseAll()
Source Files
¶
- agent.go
Click to show internal directories.
Click to hide internal directories.