Module kflow

This module contains operation and maintenance functions.

Copyright © 2019 Klarna Bank AB (publ)

Description

This module contains operation and maintenance functions.

Data Types

behavior()

behavior() = atom()

kafka_config()

kafka_config() = #{kafka_topic := binary(), group_id := binary(), kafka_client => atom(), consumer_config => brod:consumer_config(), term() => term()}

message()

message() = #kflow_msg{}

node_config()

node_config() = #{hard_timeout => timeout(), max_queue_len => non_neg_integer()}

node_id()

node_id() = [atom()]

node_spec()

node_spec() = node_spec(term())

node_spec()

node_spec(CallbackConfig) = {Behavior::behavior(), CallbackModule::module(), CallbackConfig} | {Behavior::behavior(), NodeConfig::node_config(), CallbackModule::module(), CallbackConfig} | {map, kflow_gen_map:callback_fun()} | {filter, kflow_gen_filter:callback_fun()} | {demux, kflow_gen_demux:callback_fun()} | {mfd, kflow_gen_mfd:callback_fun()} | {unfold, kflow_gen_unfold:callback_fun()} | {route_dependent, kflow_route_dependent:callback_fun()} | join

offset()

offset() = integer()

pipe()

pipe() = [node_spec(), ...]

workflow()

workflow() = #{start := {module(), atom()}, args := #{id := atom(), term() => term()}, term() => term()}

Function Index

kafka_client_settings/0Get Kafka connection setting of the default client.
kafka_client_settings/1Get Kafka connection settings.
mk_kafka_workflow/3Helper function for creating standard Kafka workflows.

Function Details

kafka_client_settings/0

kafka_client_settings() -> {[brod:endpoint()], brod:client_config()}

Get Kafka connection setting of the default client

kafka_client_settings/1

kafka_client_settings(Name::atom()) -> {[brod:endpoint()], brod:client_config()}

Get Kafka connection settings

mk_kafka_workflow/3

mk_kafka_workflow(Id::atom(), PipeSpec::pipe(), Config::kafka_config()) -> workflow()

Helper function for creating standard Kafka workflows


Generated by EDoc