Liking cljdoc? Tell your friends :D

milvus-clj.config

Typed config for milvus-clj — declared via hive-di defconfig.

Replaces the historical defonce config (atom default-config) pattern. Generates (via the macro):

MilvusClientConfig — ADT (:config/resolved | :unresolved | :invalid) MilvusClientConfig-fields — field registry (source of truth) MilvusClientConfig-schema — Malli closed map schema resolve-MilvusClientConfig — resolver fn (0/1/2 arity) returning Result

Resolution order (per env-sourced field):

  1. Explicit overrides map (e.g. opts passed to api/connect!)
  2. Environment variable lookup (System/getenv by default)
  3. blank->nil normalization ("" → trigger default)
  4. Pre-typed default (skips coercion)
  5. hive-dsl.coerce on string env values

Mirror of hive-milvus.config/MilvusConfig for the env-sourced surface (host/port/transport/token), augmented with literal fields carrying the legacy gRPC keepalive / idle / TLS / HTTP defaults that the api.clj shim forwards into client/make via flat->nested.

Backward-compat shims: get-config / configure! / reset-config! survive as thin wrappers over a private resolved-cache atom so the legacy api.clj caller path keeps working without rewriting every connect! call. Tests that need to stub config should use with-redefs on resolve-MilvusClientConfig.

Typed config for milvus-clj — declared via hive-di defconfig.

Replaces the historical `defonce config (atom default-config)` pattern.
Generates (via the macro):

  MilvusClientConfig            — ADT (:config/resolved | :unresolved | :invalid)
  MilvusClientConfig-fields     — field registry (source of truth)
  MilvusClientConfig-schema     — Malli closed map schema
  resolve-MilvusClientConfig    — resolver fn (0/1/2 arity) returning Result

Resolution order (per env-sourced field):
  1. Explicit overrides map (e.g. opts passed to api/connect!)
  2. Environment variable lookup (System/getenv by default)
  3. blank->nil normalization ("" → trigger default)
  4. Pre-typed default (skips coercion)
  5. hive-dsl.coerce on string env values

Mirror of `hive-milvus.config/MilvusConfig` for the env-sourced surface
(host/port/transport/token), augmented with `literal` fields carrying
the legacy gRPC keepalive / idle / TLS / HTTP defaults that the api.clj
shim forwards into client/make via flat->nested.

Backward-compat shims:
  get-config / configure! / reset-config! survive as thin wrappers over
  a private resolved-cache atom so the legacy api.clj caller path keeps
  working without rewriting every connect! call. Tests that need to
  stub config should use `with-redefs` on `resolve-MilvusClientConfig`.
raw docstring

->milvus-client-configclj

(->milvus-client-config kw__1697__auto__)

Coerce a keyword to a MilvusClientConfig variant (no data fields). Returns nil if keyword is not a valid variant.

Coerce a keyword to a MilvusClientConfig variant (no data fields).
Returns nil if keyword is not a valid variant.
sourceraw docstring

configure!clj

(configure! opts)

Merge new settings into the session-scoped Milvus overrides map.

DEPRECATED: prefer passing opts directly to api/connect! (which forwards to resolve-MilvusClientConfig). Retained so existing one-arg (connect! {...}) callers keep working without churn.

Example: (configure! {:host "milvus.prod" :port 19530 :collection-name "memories"})

Merge new settings into the session-scoped Milvus overrides map.

DEPRECATED: prefer passing opts directly to `api/connect!` (which
forwards to `resolve-MilvusClientConfig`). Retained so existing
one-arg `(connect! {...})` callers keep working without churn.

Example:
  (configure! {:host "milvus.prod" :port 19530 :collection-name "memories"})
sourceraw docstring

get-configclj

(get-config)

Get current Milvus configuration map.

DEPRECATED: prefer calling resolve-MilvusClientConfig with explicit overrides at the api boundary. This shim resolves with whatever session-scoped overrides have been merged via configure!.

Get current Milvus configuration map.

DEPRECATED: prefer calling `resolve-MilvusClientConfig` with explicit
overrides at the api boundary. This shim resolves with whatever
session-scoped overrides have been merged via `configure!`.
sourceraw docstring

milvus-client-configclj

(milvus-client-config variant-kw__1694__auto__)
(milvus-client-config variant-kw__1694__auto__ data__1695__auto__)

Construct a MilvusClientConfig variant. (milvus-client-config variant-keyword) for enum variants (milvus-client-config variant-keyword data-map) for data variants

Throws ex-info for unknown variants.

Construct a MilvusClientConfig variant.
(milvus-client-config variant-keyword) for enum variants
(milvus-client-config variant-keyword data-map) for data variants

Throws ex-info for unknown variants.
sourceraw docstring

milvus-client-config?clj

(milvus-client-config? x__1696__auto__)

True if x is a MilvusClientConfig ADT value.

True if x is a MilvusClientConfig ADT value.
sourceraw docstring

MilvusClientConfigclj

Config ADT for MilvusClientConfig. Auto-generated by defconfig.

Config ADT for MilvusClientConfig. Auto-generated by defconfig.
sourceraw docstring

MilvusClientConfig-fieldsclj

Field registry for MilvusClientConfig config.

Field registry for MilvusClientConfig config.
sourceraw docstring

MilvusClientConfig-schemaclj

Malli schema for resolved MilvusClientConfig.

Malli schema for resolved MilvusClientConfig.
sourceraw docstring

reset-config!clj

(reset-config!)

Reset session overrides to empty — subsequent get-config resolves purely from env + defconfig defaults.

Reset session overrides to empty — subsequent `get-config` resolves
purely from env + defconfig defaults.
sourceraw docstring

resolve-MilvusClientConfigclj

(resolve-MilvusClientConfig)
(resolve-MilvusClientConfig overrides)
(resolve-MilvusClientConfig overrides opts)

Resolve MilvusClientConfig from environment + overrides. Returns Result: (ok resolved-map) or (err :config/resolution-failed {...})

Resolve MilvusClientConfig from environment + overrides.
Returns Result: (ok resolved-map) or (err :config/resolution-failed {...})
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close