Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager manages multiple sessions
func NewManager ¶
NewManager creates a new session manager
func (*Manager) GetOrCreateSession ¶
GetOrCreateSession gets an existing session or creates a new one
func (*Manager) GetSession ¶
GetSession retrieves a session by ID
func (*Manager) ListSessions ¶
ListSessions returns all active sessions
func (*Manager) RemoveSession ¶
RemoveSession removes a session
type Session ¶
type Session struct {
ID string `json:"id"`
StartedAt time.Time `json:"started_at"`
Metadata map[string]interface{} `json:"metadata"`
// contains filtered or unexported fields
}
Session represents a user session with the MCP server
func (*Session) GetMetadata ¶
GetMetadata gets metadata from a session
func (*Session) SetMetadata ¶
SetMetadata sets metadata for a session
Click to show internal directories.
Click to hide internal directories.