chatlog

package
v0.0.0-...-335dab1 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2026 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RefreshInterval = 1000 * time.Millisecond
)

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	*tview.Application
	// contains filtered or unexported fields
}

func NewApp

func NewApp(ctx *ctx.Context, m *Manager) *App

func (*App) Run

func (a *App) Run() error

func (*App) Stop

func (a *App) Stop()

type Manager

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

Manager 管理聊天日志应用

func New

func New() *Manager

func (*Manager) CommandDecrypt

func (m *Manager) CommandDecrypt(configPath string, cmdConf map[string]any) error

func (*Manager) CommandHTTPServer

func (m *Manager) CommandHTTPServer(configPath string, cmdConf map[string]any) error

func (*Manager) CommandKey

func (m *Manager) CommandKey(configPath string, pid int, force bool, showXorKey bool) (string, error)

func (*Manager) DecryptDBFiles

func (m *Manager) DecryptDBFiles() error

func (*Manager) GetDataKey

func (m *Manager) GetDataKey() error

func (*Manager) RefreshSession

func (m *Manager) RefreshSession() error

func (*Manager) Run

func (m *Manager) Run(configPath string) error

func (*Manager) SaveSpeechConfig

func (m *Manager) SaveSpeechConfig(cfg *conf.SpeechConfig) error

func (*Manager) SetHTTPAddr

func (m *Manager) SetHTTPAddr(text string) error

func (*Manager) SetRunOptions

func (m *Manager) SetRunOptions(opts RunOptions)

func (*Manager) StartAutoDecrypt

func (m *Manager) StartAutoDecrypt() error

func (*Manager) StartService

func (m *Manager) StartService() error

func (*Manager) StopAutoDecrypt

func (m *Manager) StopAutoDecrypt() error

func (*Manager) StopService

func (m *Manager) StopService() error

func (*Manager) Switch

func (m *Manager) Switch(info *iwechat.Account, history string) error

type RunMode

type RunMode int
const (
	RunModeHeadless RunMode = iota
	RunModeConsole
)

type RunOptions

type RunOptions struct {
	Mode               RunMode
	AutoOpenBrowser    bool
	AutoOpenBrowserSet bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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