Documentation
¶
Overview ¶
Package callmark holds the request-context marks the root package sets or reads and the transport spends or sets: the write mark on a request that changes forge state, and the bound of reads one action may pass the mutation reserve with. The two packages cannot import each other, so the keys live here.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ActionReadsLeft ¶
ActionReadsLeft reports whether ctx carries a bound with a read left in it.
func TakeActionRead ¶
TakeActionRead spends one read of ctx's bound, and reports false where ctx carries none or it is spent.
func WithActionReads ¶
WithActionReads gives ctx a bound of n reads, clamped to 1..[maxActionReads], shared by every request and goroutine under the returned context. A ctx that already carries a bound is returned unchanged, so a nested call cannot raise it.
Types ¶
This section is empty.