nsgflowlogs

package
v8.0.0-beta2+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 4, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventACKer

type EventACKer struct {
	// contains filtered or unexported fields
}

func NewEventACKer

func NewEventACKer(config *config.Config) (*EventACKer, error)

func (*EventACKer) ACKCount

func (a *EventACKer) ACKCount(i int)

func (*EventACKer) ACKLastEvent

func (a *EventACKer) ACKLastEvent(data []interface{})

ACKEvents receives callbacks from the publisher for every event that is published. It persists the record number of the last event in each

func (*EventACKer) Active

func (a *EventACKer) Active() int

Active returns the number of active events (published but not yet ACKed).

func (*EventACKer) Add

func (a *EventACKer) Add(delta int)

Add adds to the number of active events.

func (*EventACKer) Wait

func (a *EventACKer) Wait(ctx context.Context)

Wait waits for all events to be ACKed or for the context to be done.

type LogProcessor

type LogProcessor struct {
	// contains filtered or unexported fields
}

func NewLogProcessor

func NewLogProcessor(b *beat.Beat, c *config.Config, done chan struct{}) (*LogProcessor, error)

func (*LogProcessor) Process

func (lp *LogProcessor) Process(done chan struct{})

func (*LogProcessor) ScanForUpdatedBlobs

func (lp *LogProcessor) ScanForUpdatedBlobs(wg *sync.WaitGroup)

type NsgMessage

type NsgMessage struct {
	Time          time.Time            `json:"time"`
	SystemID      string               `json:"systemId"`
	MacAddress    string               `json:"macAddress"`
	Category      string               `json:"category"`
	ResourceID    string               `json:"resourceId"`
	OperationName string               `json:"operationName"`
	Properties    NsgMessageProperties `json:"properties"`
}

type NsgMessageFlow

type NsgMessageFlow struct {
	Rule  string        `json:"rule"`
	Flows []NsgRuleFlow `json:"flows"`
}

type NsgMessageProperties

type NsgMessageProperties struct {
	Version int              `json:"Version"`
	Flows   []NsgMessageFlow `json:"flows"`
}

type NsgRuleFlow

type NsgRuleFlow struct {
	Mac        string   `json:"mac"`
	FlowTuples []string `json:"flowTuples"`
}

type ReaderQueueItem

type ReaderQueueItem struct {
	Name         string
	PartitionKey string
	RowKey       string
	ETag         string
	Index        int64
	Length       int64
}

type Worker

type Worker struct {
	// contains filtered or unexported fields
}

func NewWorker

func NewWorker(config *config.Config, pipeline beat.Pipeline, readerQueue chan ReaderQueueItem) (*Worker, error)

func (*Worker) Run

func (w *Worker) Run(i int, wg *sync.WaitGroup, done chan struct{})

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL