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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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