Liking cljdoc? Tell your friends :D

jackdaw.serdes.resolver

Helper function for creating serdes.

Helper function for creating serdes.
raw docstring

find-serde-varclj

(find-serde-var {:keys [serde-keyword] :as serde-config})

Takes a serde config and returns the var for its :serde-keyword key.

Takes a serde config and returns the var for its
:serde-keyword key.
raw docstring

load-schemaclj

(load-schema {:keys [schema-filename] :as serde-config})

Takes a serde config and loads the schema from the classpath.

Takes a serde config and loads the schema from the classpath.
raw docstring

serde-resolverclj

(serde-resolver & options)

Returns a function of arity one which takes a serde config map and replaces (resolves) it with the implementation for the serde. The config map consists of a :serde-keyword key, and optionally, keys to specify the schema or schema filename and whether the serde will be used for an Avro key. The options are extra arguments which may be needed to create the serde, e.g, the schema registry URL.

Options: schema-registry-url - The URL for the schema registry type-registry - A mapping per jackdaw.serdes.avro/+base-schema-type-registry+> read-only - Specifies that you will not be using the resulting serializer, and does not require a schema or schema-filename serializer-properties - Properties to be used when creating the serializer deserializer-properties - Properties to be used when creating the deserializer

These are only needed for the Confluent Avro serde, and even then only the schema registry URL is required.

Returns a function of arity one which takes a serde config map and
replaces (resolves) it with the implementation for the serde. The
config map consists of a :serde-keyword key, and optionally, keys to
specify the schema or schema filename and whether the serde will be
used for an Avro key. The options are extra arguments which may be
needed to create the serde, e.g, the schema registry URL.

Options:
schema-registry-url - The URL for the schema registry
type-registry - A mapping per jackdaw.serdes.avro/+base-schema-type-registry+>
read-only - Specifies that you will not be using the resulting serializer,
            and does not require a schema or schema-filename
serializer-properties - Properties to be used when creating the serializer
deserializer-properties - Properties to be used when creating the deserializer

These are only needed for the Confluent Avro serde, and even then
only the schema registry URL is required.
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close