Neuroplastic::Client
Inherits Habitat::SettingsHelpers < Habitat::TempConfig < Reference < Object
Constants
HABITAT_SETTINGS = [{decl: uri : URI | ::Nil = (Client.env_with_deprecation("ELASTIC_URI", "ES_URI")).try(&->URI.parse(String)), example: nil, validation: nil}, {decl: host : String = (Client.env_with_deprecation("ELASTIC_HOST", "ES_HOST")) || "127.0.0.1", example: nil, validation: nil}, {decl: port : Int32 = (Client.env_with_deprecation("ELASTIC_PORT", "ES_PORT")).try(&.to_i) || 9200, example: nil, validation: nil}, {decl: user : String | ::Nil = Client.env_with_deprecation("ELASTIC_USER", "ES_USER"), example: nil, validation: nil}, {decl: password : String | ::Nil = Client.env_with_deprecation("ELASTIC_PASSWORD", "ES_PASSWORD"), example: nil, validation: nil}, {decl: tls : Bool = (Client.env_with_deprecation("ELASTIC_TLS", "ES_TLS")) == "true", example: nil, validation: nil}, {decl: pooled : Bool = (Client.env_with_deprecation("ELASTIC_POOLED", "ES_POOLED")) == "true", example: nil, validation: nil}, {decl: pool_size : Int32 = (Client.env_with_deprecation("ELASTIC_CONN_POOL", "ES_CONN_POOL")).try(&.to_i) || Client.indices, example: nil, validation: nil}, {decl: idle_pool_size : Int32 = (Client.env_with_deprecation("ELASTIC_IDLE_POOL", "ES_IDLE_POOL")).try(&.to_i) || (Client.indices // 4), example: nil, validation: nil}, {decl: pool_timeout : Float64 = (Client.env_with_deprecation("ELASTIC_CONN_POOL_TIMEOUT", "ES_CONN_POOL_TIMEOUT")).try(&.to_f64) || 5.0, example: nil, validation: nil}] of Nil
Log = ::Log.for(self)
Class methods
configure
Sourcesettings
SourceInstance methods
count(arguments = {} of Symbol => String)
Sourceperform_request(method, path, params = nil, body = nil)
Sourcesearch(arguments = {} of Symbol => String) : JSON::Any
Sourcesettings
Source