Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collector

type Collector interface {
	CollectorReader
	collector.EventCollector
}

    Collector interface implements event collector.

    func NewCollector

    func NewCollector() Collector

      NewCollector provides a new collector interface

      type CollectorReader

      type CollectorReader interface {
      	Count() int
      	FlushUserCache()
      	GetFlowRecords() map[uint64]*collector.FlowRecord
      	GetUserRecords() map[string]*collector.UserRecord
      	GetReports() chan *Report
      }

        CollectorReader interface which provides functions to query pending stats.

        type Report

        type Report struct {
        	Type    ReportType
        	Payload interface{}
        }

          Report holds the report type and the payload.

          type ReportType

          type ReportType uint8

            ReportType it the type of report.

            const (
            	FlowRecord ReportType = iota
            	UserRecord
            	PacketReport
            	CounterReport
            	DNSReport
            	PingReport
            	ConnectionExceptionReport
            )

              ReportTypes.

              Directories

              Path Synopsis
              Package mockstatscollector is a generated GoMock package.
              Package mockstatscollector is a generated GoMock package.