Documentation
¶
Overview ¶
Package mongo provides a MongoDB-backed implementation of the agents runtime session store. Build the low-level client via features/session/mongo/clients/mongo and pass it to NewStore so higher-level services can persist run metadata outside the core runtime.
Index ¶
- type Store
- func (s *Store) CreateSession(ctx context.Context, sessionID string, createdAt time.Time) (session.Session, error)
- func (s *Store) EndSession(ctx context.Context, sessionID string, endedAt time.Time) (session.Session, error)
- func (s *Store) LinkChildRun(ctx context.Context, parentRunID string, child session.RunMeta) error
- func (s *Store) ListRunsBySession(ctx context.Context, sessionID string, statuses []session.RunStatus) ([]session.RunMeta, error)
- func (s *Store) LoadRun(ctx context.Context, runID string) (session.RunMeta, error)
- func (s *Store) LoadSession(ctx context.Context, sessionID string) (session.Session, error)
- func (s *Store) UpsertRun(ctx context.Context, run session.RunMeta) 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 implements session.Store by delegating to the Mongo client.
func (*Store) CreateSession ¶
func (s *Store) CreateSession(ctx context.Context, sessionID string, createdAt time.Time) (session.Session, error)
CreateSession implements session.Store.
func (*Store) EndSession ¶
func (s *Store) EndSession(ctx context.Context, sessionID string, endedAt time.Time) (session.Session, error)
EndSession implements session.Store.
func (*Store) LinkChildRun ¶
LinkChildRun implements session.Store.
func (*Store) ListRunsBySession ¶
func (s *Store) ListRunsBySession(ctx context.Context, sessionID string, statuses []session.RunStatus) ([]session.RunMeta, error)
ListRunsBySession implements session.Store.
func (*Store) LoadSession ¶
LoadSession implements session.Store.
Click to show internal directories.
Click to hide internal directories.