stateconf

package
v1.13.14-0.2.0.rc.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 26, 2025 License: GPL-3.0 Imports: 1 Imported by: 0

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

type SnapshotUpdateOption = options.Option[snapshotUpdateConfig]

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL