example

package
v0.2.61 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2026 License: MIT Imports: 5 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()

func (*BackupHandler) GetCompactID added in v0.2.27

func (h *BackupHandler) GetCompactID() string

func (*BackupHandler) Label

func (h *BackupHandler) Label() string

func (*BackupHandler) Name

func (h *BackupHandler) Name() string

func (*BackupHandler) SetCompactID added in v0.2.27

func (h *BackupHandler) SetCompactID(id string)

func (*BackupHandler) SetLog added in v0.2.27

func (h *BackupHandler) SetLog(logger func(message ...any))

SetLog receives the logger from DevTUI

type ChatMessage

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

type DatabaseHandler

type DatabaseHandler struct {
	ConnectionString string
	LastAction       string
	// contains filtered or unexported fields
}

func (*DatabaseHandler) Change

func (h *DatabaseHandler) Change(newValue string)

func (*DatabaseHandler) Label

func (h *DatabaseHandler) Label() string

func (*DatabaseHandler) Name

func (h *DatabaseHandler) Name() string

func (*DatabaseHandler) SetLog added in v0.2.27

func (h *DatabaseHandler) SetLog(logger func(message ...any))

SetLog receives the logger from DevTUI

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)

func (*SimpleChatHandler) Label

func (h *SimpleChatHandler) Label() string

func (*SimpleChatHandler) Name

func (h *SimpleChatHandler) Name() string

func (*SimpleChatHandler) SetLog added in v0.2.25

func (h *SimpleChatHandler) SetLog(f func(message ...any))

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