internal/app/state: include et header

This is the initial step of implementing #19.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2025-10-25 22:01:26 +09:00
parent 470e545d27
commit fe2929d5f7
2 changed files with 18 additions and 17 deletions

View File

@@ -2,14 +2,9 @@
package state
import (
"errors"
"hakurei.app/hst"
)
// ErrNoConfig is returned by [Cursor] when used with a nil [hst.Config].
var ErrNoConfig = errors.New("state does not contain config")
type Store interface {
// Do calls f exactly once and ensures store exclusivity until f returns.
// Returns whether f is called and any errors during the locking process.