aboutsummaryrefslogtreecommitdiff
path: root/core/state_backend.go
blob: 219bb63ac20f8343f0f85158e8c546286e91110a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
package core

import "context"

type StateBackend interface {
	// SetCurrentKey will perform in Memory
	SetCurrentKey(key string) error
	// GetCurrentKey will perform in Memory
	GetCurrentKey() string

	// GetValueState will perform in disk
	GetValueState(ctx context.Context, key string) (ValueState[any], error)
}