partitioned

package
v1.14.2 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AbstractPartition

type AbstractPartition struct {
	Logger logger.Logger
	Stream *AbstractStream
	Worker *worker.Worker
}

func NewAbstractPartition

func NewAbstractPartition(logger logger.Logger, stream *AbstractStream) (*AbstractPartition, error)

type AbstractStream

type AbstractStream struct {
	trigger.AbstractTrigger
	// contains filtered or unexported fields
}

AbstractStream implements common stream behavior

func NewAbstractStream

func NewAbstractStream(parentLogger logger.Logger,
	workerAllocator worker.Allocator,
	configuration *Configuration,
	stream Stream,
	kind string,
	restartTriggerChan chan trigger.Trigger) (*AbstractStream, error)

func (*AbstractStream) GetConfig

func (as *AbstractStream) GetConfig() map[string]interface{}

func (*AbstractStream) Initialize

func (as *AbstractStream) Initialize() error

func (*AbstractStream) Start

func (as *AbstractStream) Start(checkpoint functionconfig.Checkpoint) error

func (*AbstractStream) Stop

func (as *AbstractStream) Stop(force bool) (functionconfig.Checkpoint, error)

type Configuration

type Configuration struct {
	trigger.Configuration
}

func NewConfiguration

func NewConfiguration(id string,
	triggerConfiguration *functionconfig.Trigger,
	runtimeConfiguration *runtime.Configuration) (*Configuration, error)

type Event

type Event struct {
	nuclio.AbstractEvent
}

type Partition

type Partition interface {

	// Read starts reading from stream partition
	Read() error
}

type Stream

type Stream interface {

	// CreatePartitions creates partitions, as per configuration
	CreatePartitions() ([]Partition, error)

	// Start starts reading from partitions
	Start(checkpoint functionconfig.Checkpoint) error

	// Start stops reading from partitions
	Stop(force bool) (functionconfig.Checkpoint, error)
}

Stream defines a stream

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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