Documentation ¶
Index ¶
- Constants
- type EntConfig
- type FlowMetric
- type FlowSource
- type KentikDriver
- type KentikLog
- func (l *KentikLog) Debug(vars ...interface{})
- func (l *KentikLog) Debugf(f string, vars ...interface{})
- func (l *KentikLog) Error(vars ...interface{})
- func (l *KentikLog) Errorf(f string, vars ...interface{})
- func (l *KentikLog) Fatalf(f string, vars ...interface{})
- func (l *KentikLog) Infof(f string, vars ...interface{})
- func (l *KentikLog) Printf(f string, vars ...interface{})
- func (l *KentikLog) Warn(vars ...interface{})
- func (l *KentikLog) Warnf(f string, vars ...interface{})
Constants ¶
View Source
const ( Ipfix FlowSource = "ipfix" Sflow = "sflow" Netflow5 = "netflow5" Netflow9 = "netflow9" NBar = "nbar" ASA = "asa" PAN = "pan" JFlow = "jflow" CFlow = "cflow" )
View Source
const (
DeviceUpdateDuration = 1 * time.Hour
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EntConfig ¶
type EntConfig struct { FlowConfig producer.ProducerConfig `json:"flow_config"` NameMap map[string]string `json:"name_map"` }
type FlowMetric ¶
type FlowMetric struct {
Flows go_metrics.Meter
}
type FlowSource ¶
type FlowSource string
type KentikDriver ¶
func NewFlowSource ¶
func NewFlowSource(ctx context.Context, proto FlowSource, maxBatchSize int, log logger.Underlying, registry go_metrics.Registry, jchfChan chan []*kt.JCHF, apic *api.KentikApi, resolv *resolv.Resolver, cfg *ktranslate.FlowInputConfig) (*KentikDriver, error)
func NewKentikDriver ¶
func NewKentikDriver(ctx context.Context, proto FlowSource, maxBatchSize int, log logger.Underlying, registry go_metrics.Registry, jchfChan chan []*kt.JCHF, apic *api.KentikApi, fields string, resolv *resolv.Resolver, cfg *ktranslate.FlowInputConfig) *KentikDriver
func (*KentikDriver) Close ¶
func (t *KentikDriver) Close()
func (*KentikDriver) Format ¶
func (t *KentikDriver) Format(data interface{}) ([]byte, []byte, error)
func (*KentikDriver) HttpInfo ¶
func (t *KentikDriver) HttpInfo() map[string]float64
func (*KentikDriver) Prepare ¶
func (t *KentikDriver) Prepare() error
func (*KentikDriver) SetConfig ¶
func (t *KentikDriver) SetConfig(c EntConfig)
Click to show internal directories.
Click to hide internal directories.