event

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BatchEvents

type BatchEvents []*v1.SniffData

BatchEvents is used by Forwarder to forward.

type Offset

type Offset struct {
	Partition int
	Position  string
}

Offset is a generic form, which allows having different definitions in different Queues.

func (*Offset) String added in v0.4.0

func (o *Offset) String() string

type OutputEventContext

type OutputEventContext struct {
	Context map[string]*v1.SniffData
	Offset  *Offset
}

OutputEventContext is a container to store the output context.

func (*OutputEventContext) Get

func (c *OutputEventContext) Get(eventName string) (*v1.SniffData, error)

Get returns an event in the context. When the eventName does not exist, an error would be returned.

func (*OutputEventContext) Put

func (c *OutputEventContext) Put(event *v1.SniffData)

Put puts the incoming event into the context.

type Type

type Type int32

Jump to

Keyboard shortcuts

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