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 (*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
Click to show internal directories.
Click to hide internal directories.