session

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultTTL = time.Hour

Variables

This section is empty.

Functions

This section is empty.

Types

type RecordInput

type RecordInput struct {
	GatewayID string
	SessionID string
	TurnID    string
	Provider  string
	Model     string
}

type Service

type Service struct {
	// contains filtered or unexported fields
}

func NewService

func NewService(repo domain.Repository, cfg *config.Config, logger *slog.Logger) *Service

func (*Service) LastTurnID

func (s *Service) LastTurnID(ctx context.Context, gatewayID, sessionID string) string

func (*Service) Record

func (s *Service) Record(ctx context.Context, in RecordInput)

type Store

type Store interface {
	Record(ctx context.Context, in RecordInput)
	LastTurnID(ctx context.Context, gatewayID, sessionID string) string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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