Documentation
¶
Index ¶
Constants ¶
const MetadataTTLKey = "ttlInSeconds"
Key used for "ttlInSeconds" in metadata.
Variables ¶
This section is empty.
Functions ¶
func JSONStringify ¶ added in v1.12.0
Types ¶
type KeyOp ¶ added in v1.19.1
type KeyOp struct {
Op state.TransactionalStateOperation
Guard state.TransactionalStateOperation
}
KeyOp applies the last op on a key, guarded by the first op's etag or first-write option.
func CollapseOps ¶ added in v1.19.1
func CollapseOps(ops []state.TransactionalStateOperation) ([]KeyOp, error)
CollapseOps returns one KeyOp per key, ordered by each key's last op. A later op can't be checked against the stored value, so one with an etag, or a first-write set after a set, is an ETagMismatch.