Reminisce.Limits (reminisce v0.6.0)

Copy Markdown View Source

Size caps on every text the library accepts, checked before any scanning or I/O. A text over its cap is refused as {:error, {:too_long, field}}.

fieldbytes
content32,768
query2,048
each facet (name=value), reason2,048
each source reference2,048
each cue (kind:value)2,048
key, each derived_from key, owner kind and key, subject, consent, reviewed_by, each affect_scope256
persona_set_by, persona_proposed_by, each persona_scope256

Summary

Functions

The cap for field, in bytes.

:ok when every string in value (a string, or a list of strings and {name, value} pairs, measured as stored: name=value) fits field's cap.

Functions

cap(field)

The cap for field, in bytes.

check(field, value)

:ok when every string in value (a string, or a list of strings and {name, value} pairs, measured as stored: name=value) fits field's cap.