Documentation ¶
Index ¶
- Variables
- func TopicMissingError(topic string) error
- func WithBatchIterateFunctionNextFunction(next SingleFunction) runtime.Configuration[*ProducerBatchIterateFunction]
- func WithBatchIterateFunctionProducer(producer runtime.Producer) runtime.Configuration[*ProducerBatchIterateFunction]
- func WithBatchProducerNextFunction(next BatchFunction) runtime.Configuration[*BatchProducer]
- func WithBatchProducerRuntime(producer runtime.Producer) runtime.Configuration[*BatchProducer]
- func WithBatchRetryNextFunction(next BatchFunction) runtime.Configuration[*BatchRetry]
- func WithBatchRetryPrometheus() runtime.Configuration[*SingleRetry]
- func WithBatchRetryRuntime(retry *runtime_retry.Retry) runtime.Configuration[*BatchRetry]
- func WithSingleProducerNextFunction(next SingleFunction) runtime.Configuration[*SingleProducer]
- func WithSingleProducerPrometheus() runtime.Configuration[*SingleProducer]
- func WithSingleProducerRuntime(producer runtime.Producer) runtime.Configuration[*SingleProducer]
- func WithSingleRetryNextFunction(next SingleFunction) runtime.Configuration[*SingleRetry]
- func WithSingleRetryPrometheus() runtime.Configuration[*SingleRetry]
- func WithSingleRetryRuntime(retry *runtime_retry.Retry) runtime.Configuration[*SingleRetry]
- func WithSingleTopicSwitchStatelessSingleFunction(topic string, f SingleFunction) runtime.Configuration[*SingleTopicSwitch]
- type BatchFunction
- func NewBatchRetry(configurations ...runtime.Configuration[*BatchRetry]) BatchFunction
- func NewProducerBatchFunction(configurations ...runtime.Configuration[*BatchProducer]) BatchFunction
- func NewProducerBatchIterateFunction(configurations ...runtime.Configuration[*ProducerBatchIterateFunction]) BatchFunction
- type BatchProducer
- type BatchRetry
- type OneToOneExplodeFunction
- type OneToOneFunction
- type OneToTwoFunction
- type ProducerBatchIterateFunction
- type SingleFunction
- func ConvertOneToOne[IK any, IV any, OK any, OV any](source OneToOneFunction[IK, IV, OK, OV], ik format.Format[IK], ...) SingleFunction
- func ConvertOneToOneExplode[IK any, IV any, OK any, OV any](source OneToOneExplodeFunction[IK, IV, OK, OV], ik format.Format[IK], ...) SingleFunction
- func ConvertOneToTwo[IK any, IV any, OK1 any, OV1 any, OK2 any, OV2 any](source OneToTwoFunction[IK, IV, OK1, OV1, OK2, OV2], ik format.Format[IK], ...) SingleFunction
- func NewSingleProducer(configurations ...runtime.Configuration[*SingleProducer]) SingleFunction
- func NewSingleRetry(configurations ...runtime.Configuration[*SingleRetry]) SingleFunction
- func NewSingleTopicSwitch(configurations ...runtime.Configuration[*SingleTopicSwitch]) SingleFunction
- type SingleProducer
- type SingleRetry
- type SingleTopicSwitch
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrorRetryAttempt = errors.New("retry all attempts failed")
Functions ¶
func TopicMissingError ¶
func WithBatchIterateFunctionNextFunction ¶
func WithBatchIterateFunctionNextFunction(next SingleFunction) runtime.Configuration[*ProducerBatchIterateFunction]
func WithBatchIterateFunctionProducer ¶
func WithBatchIterateFunctionProducer(producer runtime.Producer) runtime.Configuration[*ProducerBatchIterateFunction]
func WithBatchProducerNextFunction ¶
func WithBatchProducerNextFunction(next BatchFunction) runtime.Configuration[*BatchProducer]
func WithBatchProducerRuntime ¶
func WithBatchProducerRuntime(producer runtime.Producer) runtime.Configuration[*BatchProducer]
configuration
func WithBatchRetryNextFunction ¶
func WithBatchRetryNextFunction(next BatchFunction) runtime.Configuration[*BatchRetry]
func WithBatchRetryPrometheus ¶
func WithBatchRetryPrometheus() runtime.Configuration[*SingleRetry]
func WithBatchRetryRuntime ¶
func WithBatchRetryRuntime(retry *runtime_retry.Retry) runtime.Configuration[*BatchRetry]
configurations
func WithSingleProducerNextFunction ¶
func WithSingleProducerNextFunction(next SingleFunction) runtime.Configuration[*SingleProducer]
func WithSingleProducerPrometheus ¶
func WithSingleProducerPrometheus() runtime.Configuration[*SingleProducer]
func WithSingleProducerRuntime ¶
func WithSingleProducerRuntime(producer runtime.Producer) runtime.Configuration[*SingleProducer]
configurations
func WithSingleRetryNextFunction ¶
func WithSingleRetryNextFunction(next SingleFunction) runtime.Configuration[*SingleRetry]
func WithSingleRetryPrometheus ¶
func WithSingleRetryPrometheus() runtime.Configuration[*SingleRetry]
func WithSingleRetryRuntime ¶
func WithSingleRetryRuntime(retry *runtime_retry.Retry) runtime.Configuration[*SingleRetry]
configurations
func WithSingleTopicSwitchStatelessSingleFunction ¶
func WithSingleTopicSwitchStatelessSingleFunction(topic string, f SingleFunction) runtime.Configuration[*SingleTopicSwitch]
configuration
Types ¶
type BatchFunction ¶
type BatchFunction func(context.Context, []message.Message[message.Bytes, message.Bytes]) ([]message.Message[message.Bytes, message.Bytes], error)
func NewBatchRetry ¶
func NewBatchRetry(configurations ...runtime.Configuration[*BatchRetry]) BatchFunction
constructor
func NewProducerBatchFunction ¶
func NewProducerBatchFunction(configurations ...runtime.Configuration[*BatchProducer]) BatchFunction
constructor
func NewProducerBatchIterateFunction ¶
func NewProducerBatchIterateFunction(configurations ...runtime.Configuration[*ProducerBatchIterateFunction]) BatchFunction
constructor
type BatchProducer ¶
type BatchProducer struct {
// contains filtered or unexported fields
}
implementation
type BatchRetry ¶
type BatchRetry struct {
// contains filtered or unexported fields
}
implementation
type OneToOneExplodeFunction ¶ added in v0.0.5
type OneToOneFunction ¶
type OneToTwoFunction ¶
type ProducerBatchIterateFunction ¶
type ProducerBatchIterateFunction struct {
// contains filtered or unexported fields
}
implementation
type SingleFunction ¶
type SingleFunction func(context.Context, message.Message[message.Bytes, message.Bytes]) ([]message.Message[message.Bytes, message.Bytes], error)
func ConvertOneToOne ¶
func ConvertOneToOneExplode ¶ added in v0.0.5
func ConvertOneToTwo ¶
func NewSingleProducer ¶
func NewSingleProducer(configurations ...runtime.Configuration[*SingleProducer]) SingleFunction
constructor
func NewSingleRetry ¶
func NewSingleRetry(configurations ...runtime.Configuration[*SingleRetry]) SingleFunction
constructor
func NewSingleTopicSwitch ¶
func NewSingleTopicSwitch(configurations ...runtime.Configuration[*SingleTopicSwitch]) SingleFunction
constructor
type SingleProducer ¶
type SingleProducer struct {
// contains filtered or unexported fields
}
implementation
type SingleRetry ¶
type SingleRetry struct {
// contains filtered or unexported fields
}
implementation
type SingleTopicSwitch ¶
type SingleTopicSwitch struct {
// contains filtered or unexported fields
}
implementation
Click to show internal directories.
Click to hide internal directories.