From 96c07bab1086510a55a004e9a1b90c30bc723a5c Mon Sep 17 00:00:00 2001 From: sangtran Date: Sat, 29 Aug 2026 01:08:28 +0700 Subject: feat: init base draft support window --- core/state.go | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 core/state.go (limited to 'core/state.go') diff --git a/core/state.go b/core/state.go new file mode 100644 index 0000000..d6d7847 --- /dev/null +++ b/core/state.go @@ -0,0 +1,10 @@ +package core + +import "context" + +// ValueState is for client side using to update state +type ValueState[T any] interface { + Value(ctx context.Context) (T, error) + Update(ctx context.Context, newVal T) (T, error) + Clear(ctx context.Context) error +} -- cgit v1.3.1