example

package
v0.2.20 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BackupHandler

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

func (*BackupHandler) Execute

func (h *BackupHandler) Execute(progress chan<- string)

func (*BackupHandler) GetLastOperationID

func (h *BackupHandler) GetLastOperationID() string

func (*BackupHandler) Label

func (h *BackupHandler) Label() string

func (*BackupHandler) Name

func (h *BackupHandler) Name() string

func (*BackupHandler) SetLastOperationID

func (h *BackupHandler) SetLastOperationID(id string)

type ChatMessage

type ChatMessage struct {
	IsUser bool
	Text   string
	Time   time.Time
}

type DatabaseHandler

type DatabaseHandler struct {
	ConnectionString string
	LastAction       string
}

func (*DatabaseHandler) Change

func (h *DatabaseHandler) Change(newValue string, progress chan<- string)

func (*DatabaseHandler) Label

func (h *DatabaseHandler) Label() string

func (*DatabaseHandler) Name

func (h *DatabaseHandler) Name() string

func (*DatabaseHandler) Shortcuts

func (h *DatabaseHandler) Shortcuts() []map[string]string

NEW: Add shortcut support

func (*DatabaseHandler) Value

func (h *DatabaseHandler) Value() string

type OperationLogWriter

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

func (*OperationLogWriter) GetLastOperationID

func (w *OperationLogWriter) GetLastOperationID() string

func (*OperationLogWriter) Name

func (w *OperationLogWriter) Name() string

func (*OperationLogWriter) SetLastOperationID

func (w *OperationLogWriter) SetLastOperationID(id string)

type SimpleChatHandler

type SimpleChatHandler struct {
	Messages           []ChatMessage
	CurrentInput       string
	WaitingForUserFlag bool
	IsProcessing       bool
	// contains filtered or unexported fields
}

func NewSimpleChatHandler

func NewSimpleChatHandler() *SimpleChatHandler

NewSimpleChatHandler creates a new thread-safe chat handler

func (*SimpleChatHandler) Change

func (h *SimpleChatHandler) Change(newValue string, progress chan<- string)

func (*SimpleChatHandler) Label

func (h *SimpleChatHandler) Label() string

func (*SimpleChatHandler) Name

func (h *SimpleChatHandler) Name() string

func (*SimpleChatHandler) Value

func (h *SimpleChatHandler) Value() string

func (*SimpleChatHandler) WaitingForUser

func (h *SimpleChatHandler) WaitingForUser() bool

type StatusHandler

type StatusHandler struct{}

func (*StatusHandler) Content

func (h *StatusHandler) Content() string

func (*StatusHandler) Name

func (h *StatusHandler) Name() string

type SystemLogWriter

type SystemLogWriter struct{}

func (*SystemLogWriter) Name

func (w *SystemLogWriter) Name() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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