Skip to content

Instantly share code, notes, and snippets.

@dasch
Created July 27, 2016 09:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dasch/47c99ce3503dfac8670282af0e74e45a to your computer and use it in GitHub Desktop.
Save dasch/47c99ce3503dfac8670282af0e74e45a to your computer and use it in GitHub Desktop.
module Kafka.Consumer where
import Kafka
type alias Config =
{ groupId : String
, checkpointInterval : Maybe Int
, checkpointThreshold : Maybe Int
, heartbeatInterval : Int
}
init : Config -> Consumer
subscribe : String -> Consumer -> Consumer
run : (Message -> x) -> Consumer -> Task Never ()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment