Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AutoFlowPipe ¶ added in v2.1.0
type AutoFlowPipe struct { *SFlowPipe *NetFlowPipe }
func NewFlowPipe ¶ added in v2.1.0
func NewFlowPipe(cfg *PipeConfig) *AutoFlowPipe
func (*AutoFlowPipe) Close ¶ added in v2.1.0
func (p *AutoFlowPipe) Close()
func (*AutoFlowPipe) DecodeFlow ¶ added in v2.1.0
func (p *AutoFlowPipe) DecodeFlow(msg interface{}) error
type DecoderFunc ¶
type DecoderFunc func(msg interface{}) error
Callback used to decode a UDP message
type NetFlowPipe ¶
type NetFlowPipe struct {
// contains filtered or unexported fields
}
func NewNetFlowPipe ¶
func NewNetFlowPipe(cfg *PipeConfig) *NetFlowPipe
func (*NetFlowPipe) Close ¶
func (p *NetFlowPipe) Close()
func (*NetFlowPipe) DecodeFlow ¶
func (p *NetFlowPipe) DecodeFlow(msg interface{}) error
type PipeConfig ¶
type PipeConfig struct { Format format.FormatInterface Transport transport.TransportInterface Producer producer.ProducerInterface NetFlowTemplater templates.TemplateSystemGenerator }
type PipeMessageError ¶
func (*PipeMessageError) Error ¶
func (e *PipeMessageError) Error() string
func (*PipeMessageError) Unwrap ¶
func (e *PipeMessageError) Unwrap() error
type ReceiverCallback ¶ added in v2.1.1
type ReceiverCallback interface {
Dropped(msg Message)
}
type ReceiverError ¶
type ReceiverError struct {
Err error
}
func (*ReceiverError) Error ¶
func (e *ReceiverError) Error() string
func (*ReceiverError) Unwrap ¶
func (e *ReceiverError) Unwrap() error
type SFlowPipe ¶
type SFlowPipe struct {
// contains filtered or unexported fields
}
func NewSFlowPipe ¶
func NewSFlowPipe(cfg *PipeConfig) *SFlowPipe
func (*SFlowPipe) DecodeFlow ¶
type UDPReceiver ¶
type UDPReceiver struct {
// contains filtered or unexported fields
}
func NewUDPReceiver ¶
func NewUDPReceiver(cfg *UDPReceiverConfig) (*UDPReceiver, error)
func (*UDPReceiver) Errors ¶
func (r *UDPReceiver) Errors() <-chan error
func (*UDPReceiver) Start ¶
func (r *UDPReceiver) Start(addr string, port int, decodeFunc DecoderFunc) error
Start UDP receivers and the processing routines
type UDPReceiverConfig ¶
type UDPReceiverConfig struct { Workers int Sockets int Blocking bool QueueSize int ReceiverCallback ReceiverCallback }
Click to show internal directories.
Click to hide internal directories.