View Source ExTypesense.Connection (ExTypesense v0.7.3)
Fetches credentials either from application env or map.
Summary
Functions
Setting new connection or using the default config.
Types
@type t() :: %{ host: binary() | nil, api_key: binary() | nil, port: non_neg_integer() | nil, scheme: binary() | nil }
Functions
Setting new connection or using the default config.
On using this function
Functions e.g.
ExTypesense.searchdon't need to explicitly pass this unless you want to use another connection. SeeREADMEfor more details. Also,api_keyis hidden when invoking this function.
Examples
iex> conn = ExTypesense.Connection.new()
%ExTypesense.Connection{
host: "localhost",
port: 8108,
scheme: "http",
...
}