run

package
v0.0.30 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2025 License: MIT Imports: 31 Imported by: 0

Documentation

Index

Constants

View Source
const DEFAULT_STORAGE = "file"

Variables

This section is empty.

Functions

func CreateLogManager added in v0.0.3

func CreateLogManager(storageType string, serverAddr string, serverToken string) (*data.LogManager, *data.Services, error)

func HandleToggleCollapsed added in v0.0.30

func HandleToggleCollapsed(ctx context.Context, appState *app.State, logManager *data.LogManager, entryType models.LogEntryViewType, id int64) error

func Main

func Main(args []string) error

func RenderToString added in v0.0.12

func RenderToString(entries []*models.LogEntryView, showID bool, simulateTTY bool) string

Types

type ExportData added in v0.0.3

type ExportData struct {
	Entries []ExportEntry `json:"entries"`
}

type ExportEntry added in v0.0.3

type ExportEntry struct {
	Data  *models.LogEntry `json:"data"`
	Notes []ExportNote     `json:"notes"`
}

type ExportNote added in v0.0.3

type ExportNote struct {
	Data *models.Note `json:"data"`
}

type Model added in v0.0.2

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

func (*Model) Init added in v0.0.2

func (m *Model) Init() tea.Cmd

func (*Model) Update added in v0.0.2

func (m *Model) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (*Model) View added in v0.0.2

func (m *Model) View() string

type StorageConfig added in v0.0.10

type StorageConfig struct {
	StorageType string
	ServerAddr  string
	ServerToken string
}

StorageConfig holds storage-related configuration values

func ApplyConfigDefaults added in v0.0.10

func ApplyConfigDefaults(storageType, serverAddr, serverToken string) (StorageConfig, error)

ApplyConfigDefaults loads saved config and applies defaults to storage settings

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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