sessionservice

package
v1.0.0-rc.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 23, 2026 License: Apache-2.0 Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service interface {
	New(ctx context.Context, identity, name string) (id string, err error)

	List(ctx context.Context, identity string) ([]*SessionInfo, error)

	Switch(ctx context.Context, identity, name string) error

	Delete(ctx context.Context, identity, name string) (wasActive bool, err error)

	GetActiveID(ctx context.Context) (string, error)

	SetActiveID(ctx context.Context, id string) error

	EnsureDefault(ctx context.Context, identity string) (string, error)
}

func New

func New(db libdb.DBManager, workspaceID string, tracker libtracker.ActivityTracker) Service

type SessionInfo

type SessionInfo struct {
	ID           string
	Name         string
	MessageCount int
	IsActive     bool
	UpdatedAt    time.Time
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL