-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Besides other documentation changes, this commit ensures the generated HTML doc for HexDocs.pm will become the source of truth for this Elixir library and leverage on latest features of ExDoc.
- Loading branch information
Showing
23 changed files
with
182 additions
and
135 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Used by "mix format" | ||
[ | ||
inputs: ["mix.exs", "{config,lib,test}/**/*.{ex,exs}"] | ||
inputs: ["{mix,.formatter}.exs", "{config,lib,test}/**/*.{ex,exs}"] | ||
] |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
MIT License | ||
# MIT License | ||
|
||
Copyright (c) 2018 Frame.io | ||
|
||
|
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,28 @@ | ||
defprotocol ExlasticSearch.Indexable do | ||
@moduledoc """ | ||
Protocol for converting Ecto structs to ES-compatible maps. `ExlasticSearch.Repo` uses | ||
this internally to effect any conversion prior to communicating with elasticsearch itself | ||
Protocol for converting Ecto structs to ES-compatible maps. | ||
`ExlasticSearch.Repo` uses this internally to effect any conversion prior to | ||
communicating with elasticsearch itself | ||
""" | ||
|
||
@doc "ES record id" | ||
@doc "ES record id." | ||
@spec id(struct) :: binary | ||
def id(_) | ||
|
||
@doc "Properties map to be inserted into ES" | ||
@doc "Properties map to be inserted into ES." | ||
@spec document(struct, atom) :: map | ||
def document(_, _) | ||
|
||
@doc "Properties map to be inserted into ES" | ||
@doc "Properties map to be inserted into ES." | ||
@spec document(struct) :: map | ||
def document(_) | ||
|
||
@doc "Any preloads needed to call `document/2`" | ||
@doc "Any preloads needed to call `document/2`." | ||
@spec preload(struct, atom) :: struct | ||
def preload(_, _) | ||
|
||
@doc "Any preloads needed to call `document/2`" | ||
@doc "Any preloads needed to call `document/2`." | ||
@spec preload(struct) :: struct | ||
def preload(_) | ||
end |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
defmodule ExlasticSearch.Monitoring.Mock do | ||
@moduledoc """ | ||
Noop implementation of monitoring. To bring your own, do `config :exlasticsearch, :monitoring, MonitoringModule` | ||
Noop implementation of monitoring. | ||
To bring your own, do `config :exlasticsearch, :monitoring, MonitoringModule` | ||
""" | ||
def increment(_, _), do: nil | ||
end | ||
end |
Oops, something went wrong.