Last active
January 30, 2017 19:21
-
-
Save radzserg/1a6ce8b8da8cc88d5c1222d09a8f1a52 to your computer and use it in GitHub Desktop.
Behaviour for ES domain models
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| defmodule App.Es.DocumentBehavior do | |
| @doc """ | |
| Build es document body | |
| """ | |
| @callback index() :: string | |
| @doc """ | |
| Build es document body | |
| """ | |
| @callback build!(Map, Map) :: Map | |
| @doc """ | |
| Build es query | |
| """ | |
| @callback build_query!(Map, Map) :: Map | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment