Documentation
¶
Overview ¶
Package stateconf configures state management.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractUpdatePayload ¶
func ExtractUpdatePayload(opts ...SnapshotUpdateOption) any
ExtractUpdatePayload returns the payload carried by a WithUpdatePayload option. Only one such option can be used at once; behaviour is otherwise undefined.
Types ¶
type SnapshotUpdateOption ¶
A SnapshotUpdateOption configures the behaviour of state.SnapshotTree.Update() implementations. This will be removed along with state.SnapshotTree.
func WithUpdatePayload ¶
func WithUpdatePayload(p any) SnapshotUpdateOption
WithUpdatePayload returns a SnapshotUpdateOption carrying an arbitrary payload. It acts only as a carrier to exploit existing function plumbing and the effect on behaviour is left to the implementation receiving it.
Click to show internal directories.
Click to hide internal directories.