Default Duckula handler. It talks JSON but can validate requests with provided Avro schemas
Default Duckula handler. It talks JSON but can validate requests with provided Avro schemas
(build-metric-keys {:keys [endpoints prefix] :as config})
For each endpoint it constructs a list of metric keys to be used when tracking timing, rates and errors Example for name test-api and /some/endpoint it will create test-api.some.endpoint test-api.some.endpoint.success test-api.some.endpoint.error test-api.some.endpoint.failure
For each endpoint it constructs a list of metric keys to be used when tracking timing, rates and errors Example for name test-api and /some/endpoint it will create test-api.some.endpoint test-api.some.endpoint.success test-api.some.endpoint.error test-api.some.endpoint.failure
(build-route-map {:keys [prefix endpoints mangle-names?]})
Turns static config (documented below) into a map of function maps:
Turns static config (documented below) into a map of function maps: - request handler - request input validator - request output validator Validators use Avro to ensure passed in data is ok
(validate-with-tag tag validator-fn input monitoring)
Runs validation function and re-throws the exception with extra info attached. Each generated avro validator function carries metadata with schema name
Runs validation function and re-throws the exception with extra info attached. Each generated avro validator function carries metadata with schema name
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close