Documentation ¶
Overview ¶
Package sfserver provides sflow collection services via UDP and passes flows into annotator layer
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SflowServer ¶
type SflowServer struct { // Output is the channel used to send flows to the annotator layer Output chan *netflow.Flow // contains filtered or unexported fields }
SflowServer represents a sflow Collector instance
func New ¶
func New(numReaders int, config *config.Config, sampleRateCache *srcache.SamplerateCache) *SflowServer
New creates and starts a new `SflowServer` instance
func (*SflowServer) Close ¶
func (sfs *SflowServer) Close()
Close closes the socket and stops the workers
Click to show internal directories.
Click to hide internal directories.