View Source parthenon_schema (parthenon v0.5.1)
Link to this section Summary
Link to this section Types
-type encoder() :: fun((binary()) -> supported_types()).
-type schema() :: #{schema_key() := schema_value()}.
-type schema_key() :: atom().
-type supported_types() :: undefined | integer() | float() | binary() | boolean() | [supported_types()].
Link to this section Functions
-spec create(Schema :: binary() | string()) -> {ok, schema()} | {error, term()}.