Documentation
¶
Index ¶
- type Store
- func (s *Store) AppendEvent(ctx context.Context, req *session.Session, ev *session.Event) error
- func (s *Store) GetOrCreate(ctx context.Context, req *session.Session) (*session.Session, error)
- func (s *Store) ListContextWindowEvents(ctx context.Context, req *session.Session) ([]*session.Event, error)
- func (s *Store) ListEvents(ctx context.Context, req *session.Session) ([]*session.Event, error)
- func (s *Store) ListEventsAfter(ctx context.Context, req *session.Session, afterCursor string, limit int) ([]*session.Event, string, error)
- func (s *Store) ReplaceState(ctx context.Context, req *session.Session, values map[string]any) error
- func (s *Store) SessionExists(ctx context.Context, req *session.Session) (bool, error)
- func (s *Store) SnapshotState(ctx context.Context, req *session.Session) (map[string]any, error)
- func (s *Store) UpdateState(ctx context.Context, req *session.Session, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store is a thread-safe in-memory session store.
func (*Store) AppendEvent ¶
func (*Store) GetOrCreate ¶
func (*Store) ListContextWindowEvents ¶
func (*Store) ListEvents ¶
func (*Store) ListEventsAfter ¶ added in v0.0.23
func (*Store) ReplaceState ¶ added in v0.0.10
func (*Store) SessionExists ¶ added in v0.0.16
func (*Store) SnapshotState ¶
Click to show internal directories.
Click to hide internal directories.