Documentation
¶
Overview ¶
Package managedstate persists JSON records through an explicitly selected SDK backend. Instances are event-loop owned. No disk or private-to-portable fallback
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PortableBackend ¶
type PrivateBackend ¶
type PrivateBackend interface {
ListKeys(context.Context, string) (sdk.StorageKeys, error)
Get(context.Context, string) (sdk.StorageValue, error)
Receipt(context.Context, string, string) (sdk.StorageReceipt, error)
Commit(context.Context, sdk.StorageVersion, string, []sdk.StorageMutation) (sdk.StorageReceipt, error)
}
type State ¶
func New ¶
func New(mode, key string, portable PortableBackend, private PrivateBackend) (*State, error)
Create state with an explicit session, portable or private mode
func (*State) CheckPending ¶
Check whether an uncertain commit still needs reconciliation