Changeset 0.26.0 (#165)
This commit is contained in:
@@ -48,6 +48,7 @@ type Stores struct {
|
||||
RoutingPolicies RoutingPolicyStore
|
||||
Sessions SessionStore
|
||||
Surfaces SurfaceRegistryStore // v0.25.0: Surface lifecycle management
|
||||
Workflows WorkflowStore // v0.26.1: Workflow definitions + stages
|
||||
}
|
||||
|
||||
// =========================================
|
||||
@@ -647,6 +648,11 @@ type SessionStore interface {
|
||||
ListForChannel(ctx context.Context, channelID string) ([]models.SessionParticipant, error)
|
||||
CountForChannel(ctx context.Context, channelID string) (int, error)
|
||||
Delete(ctx context.Context, id string) error
|
||||
|
||||
// DeleteExpired removes sessions older than the given time that have
|
||||
// no associated messages. Returns the number of deleted rows.
|
||||
// Used by the background session cleanup job (v0.26.0).
|
||||
DeleteExpired(ctx context.Context, olderThan time.Time) (int64, error)
|
||||
}
|
||||
|
||||
// =========================================
|
||||
|
||||
Reference in New Issue
Block a user