event

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2021 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 []*protocol.Event

BatchEvents is used by Forwarder to forward.

type Offset

type Offset string

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

type OutputEventContext

type OutputEventContext struct {
	Context map[string]*protocol.Event
	Offset  Offset
}

OutputEventContext is a container to store the output context.

func (*OutputEventContext) Get

func (c *OutputEventContext) Get(eventName string) (*protocol.Event, 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 *protocol.Event)

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