trireme-lib: go.aporeto.io/trireme-lib/controller/pkg/remoteenforcer/internal/statscollector Index | Files | Directories

package statscollector

import "go.aporeto.io/trireme-lib/controller/pkg/remoteenforcer/internal/statscollector"

Index

Package Files

collector.go collector_reader.go collector_trireme.go interfaces.go

type Collector Uses

type Collector interface {
    CollectorReader
    collector.EventCollector
}

Collector interface implements event collector.

func NewCollector Uses

func NewCollector() Collector

NewCollector provides a new collector interface

type CollectorReader Uses

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

CollectorReader interface which provides functions to query pending stats.

type Report Uses

type Report struct {
    Type    ReportType
    Payload interface{}
}

Report holds the report type and the payload.

type ReportType Uses

type ReportType uint8

ReportType it the type of report.

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

ReportTypes.

Directories

PathSynopsis
mockstatscollectorPackage mockstatscollector is a generated GoMock package.

Package statscollector imports 3 packages (graph) and is imported by 8 packages. Updated 2020-04-03. Refresh now. Tools for package owners.