kafka

package
v0.0.196 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeSaramaKafkaEndpointConsumer

func MakeSaramaKafkaEndpointConsumer[T any](stream runtime.TypedInputStream[T], handler SaramaKafkaEndpointHandler[T]) runtime.Consumer[T]

Types

type HandlerData

type HandlerData struct {
	Message *kafka.ConsumerMessage
	Session kafka.ConsumerGroupSession
	Claim   kafka.ConsumerGroupClaim
}

type SaramaKafkaDataSource

type SaramaKafkaDataSource struct {
	*runtime.InputDataSource
	// contains filtered or unexported fields
}

func (*SaramaKafkaDataSource) Start

func (ds *SaramaKafkaDataSource) Start(ctx context.Context) error

func (*SaramaKafkaDataSource) Stop

func (ds *SaramaKafkaDataSource) Stop(ctx context.Context)

func (*SaramaKafkaDataSource) WaitGroup

func (ds *SaramaKafkaDataSource) WaitGroup() *sync.WaitGroup

type SaramaKafkaEndpoint

type SaramaKafkaEndpoint struct {
	*runtime.DataSourceEndpoint
}

func (*SaramaKafkaEndpoint) Start

func (*SaramaKafkaEndpoint) Stop

func (ep *SaramaKafkaEndpoint) Stop(ctx context.Context)

type SaramaKafkaEndpointConsumer

type SaramaKafkaEndpointConsumer interface {
	runtime.InputEndpointConsumer
	Start(context.Context) error
	Stop(context.Context)
}

type SaramaKafkaEndpointHandler

type SaramaKafkaEndpointHandler[T any] interface {
	Handler(*HandlerData, runtime.Collect[T])
}

type SaramaKafkaInputDataSource

type SaramaKafkaInputDataSource interface {
	runtime.DataSource
	WaitGroup() *sync.WaitGroup
}

type SaramaKafkaInputEndpoint

type SaramaKafkaInputEndpoint interface {
	runtime.InputEndpoint
	Start(context.Context, kafka.ClusterAdmin) error
	Stop(context.Context)
}

type TypedSaramaKafkaEndpointConsumer

type TypedSaramaKafkaEndpointConsumer[T any] struct {
	*runtime.DataSourceEndpointConsumer[T]
	// contains filtered or unexported fields
}

func (*TypedSaramaKafkaEndpointConsumer[T]) Cleanup

func (*TypedSaramaKafkaEndpointConsumer[T]) ConsumeClaim

func (*TypedSaramaKafkaEndpointConsumer[T]) Out

func (ec *TypedSaramaKafkaEndpointConsumer[T]) Out(value T)

func (*TypedSaramaKafkaEndpointConsumer[T]) Setup

func (*TypedSaramaKafkaEndpointConsumer[T]) Start

func (*TypedSaramaKafkaEndpointConsumer[T]) Stop

Jump to

Keyboard shortcuts

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