Documentation
¶
Index ¶
- func ImportStateActiveKey() string
- func ImportStateAutoUndoOnStopKey() string
- func ImportStateCodexHomeKey() string
- func ImportStateSourceProviderKey() string
- func ImportStateSqliteHomeKey() string
- func ImportStateStateDBPathKey() string
- func ImportStateTargetProviderKey() string
- func RegisterRoutes(router *swagger.RouteGroup, handler *Handler)
- type Handler
- type ImportOpenAISessionsRequest
- type ImportOpenAISessionsResponse
- type Importer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ImportStateActiveKey ¶
func ImportStateActiveKey() string
func ImportStateAutoUndoOnStopKey ¶
func ImportStateAutoUndoOnStopKey() string
func ImportStateCodexHomeKey ¶
func ImportStateCodexHomeKey() string
func ImportStateSourceProviderKey ¶
func ImportStateSourceProviderKey() string
func ImportStateSqliteHomeKey ¶
func ImportStateSqliteHomeKey() string
func ImportStateStateDBPathKey ¶
func ImportStateStateDBPathKey() string
func ImportStateTargetProviderKey ¶
func ImportStateTargetProviderKey() string
func RegisterRoutes ¶
func RegisterRoutes(router *swagger.RouteGroup, handler *Handler)
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func (*Handler) ImportOpenAISessions ¶
type ImportOpenAISessionsRequest ¶
type ImportOpenAISessionsRequest struct {
SourceProvider string `json:"sourceProvider,omitempty"`
TargetProvider string `json:"targetProvider,omitempty"`
CodexHome string `json:"codexHome,omitempty"`
SqliteHome string `json:"sqliteHome,omitempty"`
StateDBPath string `json:"stateDbPath,omitempty"`
IncludeArchived *bool `json:"includeArchived,omitempty"`
CreateBackup *bool `json:"createBackup,omitempty"`
AutoUndoOnStop *bool `json:"autoUndoOnStop,omitempty"`
DryRun bool `json:"dryRun,omitempty"`
}
type ImportOpenAISessionsResponse ¶
type ImportOpenAISessionsResponse struct {
Success bool `json:"success"`
Message string `json:"message,omitempty"`
CodexHome string `json:"codexHome"`
SqliteHome string `json:"sqliteHome"`
StateDBPath string `json:"stateDbPath"`
SourceProvider string `json:"sourceProvider"`
TargetProvider string `json:"targetProvider"`
DryRun bool `json:"dryRun"`
ScannedFiles int `json:"scannedFiles"`
UpdatedSessionFiles int `json:"updatedSessionFiles"`
UpdatedArchivedFiles int `json:"updatedArchivedFiles"`
UpdatedThreadRows int64 `json:"updatedThreadRows"`
UpdatedFiles []string `json:"updatedFiles,omitempty"`
BackupPaths []string `json:"backupPaths,omitempty"`
SkippedLockedFiles []string `json:"skippedLockedFiles,omitempty"`
SkippedInvalidJSONL []string `json:"skippedInvalidJsonl,omitempty"`
SkippedUnchangedFiles int `json:"skippedUnchangedFiles"`
}
type Importer ¶
type Importer struct {
// contains filtered or unexported fields
}
func NewImporter ¶
func NewImporter() *Importer
func (*Importer) ImportOpenAISessions ¶
func (i *Importer) ImportOpenAISessions(req ImportOpenAISessionsRequest) (*ImportOpenAISessionsResponse, error)
Click to show internal directories.
Click to hide internal directories.