bungee v1.0.0-alpha2 Bungee.Repository

This is your main interface to Bungee. You can add repositories for all your Elasticsearch types and let Bungee handle the heavy lifting.

defmodule MyRepository do
  # Mandatory:
  #
  # module: This is your Elixir struct that you want to allow to be persisted
  # type: This is the Elasticsearch type name
  #
  # Optionals:
  #
  # otp_app: If you want multiple Bungee's (Different Elasticsearch connection details)
  #           then you can add them to your Supervisor with their own names.
  #           The Bungee to use for this Repository should be defined here
  # index:   Want to override the index that this type belongs to. Set it here!
  #
  use Bungee.Repository, module: MyModule, type: my_module
end