msgs

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloseDialogMsg

type CloseDialogMsg struct {
	Result any
}

CloseDialogMsg is returned by a dialog model when it should be dismissed. Result carries an optional value back to the parent (may be nil).

type DownloadDoneMsg

type DownloadDoneMsg struct {
	LocalPath string
}

DownloadDoneMsg is sent when a file has been downloaded successfully.

type Entry

type Entry struct {
	Name     string
	Path     string
	IsFolder bool
	Size     int64
	Modified string
}

Entry is a single file or folder returned by the API.

type ErrMsg

type ErrMsg struct {
	Err error
}

ErrMsg is sent when an API call fails.

func (ErrMsg) Error

func (e ErrMsg) Error() string

type FolderLoadedMsg

type FolderLoadedMsg struct {
	Path  string
	Items []Entry
}

FolderLoadedMsg is sent when a folder listing has been fetched from the API.

type NavigateFolderResult struct {
	Path string
}

NavigateFolderResult is placed in CloseDialogMsg.Result to request that the filebrowser navigate into the given folder path after the dialog closes.

type PreviewReadyMsg

type PreviewReadyMsg struct {
	Name    string
	Content string
}

PreviewReadyMsg is sent when a file preview has been rendered and is ready for display. Content contains the ANSI-formatted string.

type ShowDialogMsg

type ShowDialogMsg struct {
	Content tea.Model
}

ShowDialogMsg is returned by a component to request a dialog overlay. Content is the tea.Model that renders the dialog body.

Jump to

Keyboard shortcuts

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