Documentation
¶
Index ¶
- Constants
- func Delete(ctx context.Context, id string) error
- func InitService(dbConn *sql.DB) error
- func Subscribe(ctx context.Context) <-chan pubsub.Event[Session]
- type Service
- type Session
- func Create(ctx context.Context, title string) (Session, error)
- func CreateTaskSession(ctx context.Context, toolCallID, parentSessionID, title string) (Session, error)
- func Get(ctx context.Context, id string) (Session, error)
- func List(ctx context.Context) ([]Session, error)
- func Update(ctx context.Context, session Session) (Session, error)
Constants ¶
Variables ¶
This section is empty.
Functions ¶
func InitService ¶
Types ¶
type Service ¶
type Service interface { pubsub.Subscriber[Session] Create(ctx context.Context, title string) (Session, error) CreateTaskSession(ctx context.Context, toolCallID, parentSessionID, title string) (Session, error) Get(ctx context.Context, id string) (Session, error) List(ctx context.Context) ([]Session, error) Update(ctx context.Context, session Session) (Session, error) Delete(ctx context.Context, id string) error }
func GetService ¶
func GetService() Service
Click to show internal directories.
Click to hide internal directories.