Documentation ¶
Index ¶
- Variables
- func Base64PersistenceId(ctx context.Context, m flow.Message[structure.Bytes, structure.Bytes]) (string, error)
- func WithBatchIterateFunctionNextFunction(next SingleFunction) runtime.Configuration[*BatchIterateFunction]
- func WithBatchProducerNextFunction(next BatchFunction) runtime.Configuration[*BatchProducer]
- func WithBatchProducerPrometheus() runtime.Configuration[*BatchProducer]
- func WithBatchProducerRuntime(producer flow.Producer) runtime.Configuration[*BatchProducer]
- func WithBatchRetryNextFunction(next BatchFunction) runtime.Configuration[*BatchRetry]
- func WithBatchRetryPrometheus() runtime.Configuration[*BatchRetry]
- func WithBatchRetryRuntime(retry *runtime_retry.Retry) runtime.Configuration[*BatchRetry]
- func WithSingleRetryNextFunction(next SingleFunction) runtime.Configuration[*SingleRetry]
- func WithSingleRetryPrometheus() runtime.Configuration[*SingleRetry]
- func WithSingleRetryRuntime(retry *runtime_retry.Retry) runtime.Configuration[*SingleRetry]
- func WithTopicSwitchFunction(topic string, f BatchFunction) runtime.Configuration[*TopicSwitch]
- type BatchFunction
- func NewBatchIterateFunction(configurations ...runtime.Configuration[*BatchIterateFunction]) BatchFunction
- func NewBatchRetry(configurations ...runtime.Configuration[*BatchRetry]) BatchFunction
- func NewProducerBatchFunction(configurations ...runtime.Configuration[*BatchProducer]) BatchFunction
- func NewTopicSwitch(configurations ...runtime.Configuration[*TopicSwitch]) BatchFunction
- type BatchIterateFunction
- type BatchProducer
- type BatchRetry
- type OneToOneExplodeFunction
- type OneToOneFunction
- type OneToTwoFunction
- 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 ConvertTopicOneToOne[IK any, IV any, OK any, OV any](source OneToOneFunction[IK, IV, OK, OV], inputTopic flow.Topic[IK, IV], ...) SingleFunction
- func ConvertTopicOneToOneExplode[IK any, IV any, OK any, OV any](source OneToOneExplodeFunction[IK, IV, OK, OV], inputTopic flow.Topic[IK, IV], ...) SingleFunction
- func ConvertTopicOneToTwo[IK any, IV any, OK1 any, OV1 any, OK2 any, OV2 any](source OneToTwoFunction[IK, IV, OK1, OV1, OK2, OV2], ...) SingleFunction
- func NewSingleRetry(configurations ...runtime.Configuration[*SingleRetry]) SingleFunction
- type SingleRetry
- type TopicSwitch
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrSwitchMissingTopic = errors.New("stateless switch missing topic")
)
View Source
var ErrorRetryAttempt = errors.New("retry all attempts failed")
Functions ¶
func Base64PersistenceId ¶ added in v0.1.1
func WithBatchIterateFunctionNextFunction ¶
func WithBatchIterateFunctionNextFunction(next SingleFunction) runtime.Configuration[*BatchIterateFunction]
configuration
func WithBatchProducerNextFunction ¶
func WithBatchProducerNextFunction(next BatchFunction) runtime.Configuration[*BatchProducer]
func WithBatchProducerPrometheus ¶ added in v0.1.0
func WithBatchProducerPrometheus() runtime.Configuration[*BatchProducer]
func WithBatchProducerRuntime ¶
func WithBatchProducerRuntime(producer flow.Producer) runtime.Configuration[*BatchProducer]
configuration
func WithBatchRetryNextFunction ¶
func WithBatchRetryNextFunction(next BatchFunction) runtime.Configuration[*BatchRetry]
func WithBatchRetryPrometheus ¶
func WithBatchRetryPrometheus() runtime.Configuration[*BatchRetry]
func WithBatchRetryRuntime ¶
func WithBatchRetryRuntime(retry *runtime_retry.Retry) runtime.Configuration[*BatchRetry]
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 WithTopicSwitchFunction ¶ added in v0.2.4
func WithTopicSwitchFunction(topic string, f BatchFunction) runtime.Configuration[*TopicSwitch]
configuration
Types ¶
type BatchFunction ¶
type BatchFunction func(context.Context, []flow.Message[structure.Bytes, structure.Bytes]) ([]flow.Message[structure.Bytes, structure.Bytes], error)
func NewBatchIterateFunction ¶ added in v0.2.4
func NewBatchIterateFunction(configurations ...runtime.Configuration[*BatchIterateFunction]) BatchFunction
constructor
func NewBatchRetry ¶
func NewBatchRetry(configurations ...runtime.Configuration[*BatchRetry]) BatchFunction
constructor
func NewProducerBatchFunction ¶
func NewProducerBatchFunction(configurations ...runtime.Configuration[*BatchProducer]) BatchFunction
constructor
func NewTopicSwitch ¶ added in v0.1.1
func NewTopicSwitch(configurations ...runtime.Configuration[*TopicSwitch]) BatchFunction
constructor
type BatchIterateFunction ¶ added in v0.2.4
type BatchIterateFunction struct {
// contains filtered or unexported fields
}
implementation
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 SingleFunction ¶
type SingleFunction func(context.Context, flow.Message[structure.Bytes, structure.Bytes]) ([]flow.Message[structure.Bytes, structure.Bytes], error)
func ConvertOneToOne ¶
func ConvertOneToOneExplode ¶ added in v0.0.5
func ConvertOneToTwo ¶
func ConvertTopicOneToOne ¶ added in v0.0.15
func ConvertTopicOneToOne[IK any, IV any, OK any, OV any]( source OneToOneFunction[IK, IV, OK, OV], inputTopic flow.Topic[IK, IV], outputTopic flow.Topic[OK, OV], ) SingleFunction
func ConvertTopicOneToOneExplode ¶ added in v0.0.15
func ConvertTopicOneToOneExplode[IK any, IV any, OK any, OV any]( source OneToOneExplodeFunction[IK, IV, OK, OV], inputTopic flow.Topic[IK, IV], outputTopic flow.Topic[OK, OV], ) SingleFunction
func ConvertTopicOneToTwo ¶ added in v0.0.15
func NewSingleRetry ¶
func NewSingleRetry(configurations ...runtime.Configuration[*SingleRetry]) SingleFunction
constructor
type SingleRetry ¶
type SingleRetry struct {
// contains filtered or unexported fields
}
implementation
type TopicSwitch ¶ added in v0.1.1
type TopicSwitch struct {
// contains filtered or unexported fields
}
implementation
Click to show internal directories.
Click to hide internal directories.