Documentation
¶
Overview ¶
Package precondition is how a write names the version of the entity it was based on, and how that version is judged against the stored one. Every versioned entity's write requires one, so two people editing the same entity never silently overwrite each other: the second write is refused and its author sees what changed meanwhile.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrRequired = errors.New("precondition: the write names no version")
ErrRequired is a write that names no version where one is required. It carries no error kind: answering it is a matter of the protocol (HTTP answers 428 precondition_required), so each inbound adapter maps it.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.