Documentation
¶
Index ¶
- Constants
- Variables
- func CanCacheError(e error) bool
- func CancelCollect(file *bdpan.FileInfoDto) error
- func ConverFilesToSelectItems(s *terminal.Select, files []*bdpan.FileInfoDto) []*terminal.SelectItem
- func FillCacheToSelect(s *terminal.Select, dir, selectPath string) error
- func FillFileToSelect(s *terminal.Select, dir, selectPath string) error
- func FillSyncToSelect(s *terminal.Select, file *bdpan.FileInfoDto) error
- func FillSystemToSelect(s *terminal.Select, action SystemAction) error
- func FilterFileFiles(files []*bdpan.FileInfoDto) (filterFiles []*bdpan.FileInfoDto)
- func GetAllCacheFiles() []*bdpan.FileInfoDto
- func GetAllLocalFiles() (files []*bdpan.FileInfoDto, err error)
- func GetCacheSelectIndex(a SystemAction) (i int, f bool)
- func GetCollectFiles() []*bdpan.FileInfoDto
- func GetRootFile() *bdpan.FileInfoDto
- func GetSyncModelsByFilePath(path string) []*bdpan.SyncModel
- func IsCollect(file *bdpan.FileInfoDto) bool
- func IsInErrors(e error, errs []error) bool
- func IsKeymapK(k Keymap, key *tcell.EventKey) bool
- func IsSync(file *bdpan.FileInfoDto) bool
- func NewHelpItems(m Mode) []terminal.HelpItem
- func NewSystemSelectItem(icon, name string, action SystemAction) *terminal.SelectItem
- func RefreshSyncModelCache()
- func SaveCollect(file *bdpan.FileInfoDto) error
- func SetCacheSelectIndex(a SystemAction, i int)
- type BaseMode
- func (b *BaseMode) AppendSelectItems(item *terminal.SelectItem)
- func (b *BaseMode) ClearPrevCommand()
- func (b *BaseMode) ClearSelectItems()
- func (b *BaseMode) Draw() error
- func (b *BaseMode) GetKeymap() Keymap
- func (b *BaseMode) GetKeymapFn() KeymapFn
- func (b *BaseMode) GetKeymaps() []Keymap
- func (b BaseMode) GetMode() Mode
- func (b *BaseMode) GetPrevCommand() Command
- func (b *BaseMode) GetSelectItems() []*terminal.SelectItem
- func (b *BaseMode) IsKey(k Keymap) bool
- func (b *BaseMode) SetEventKey(ev *tcell.EventKey)
- func (b *BaseMode) SetKeymapFn(fn KeymapFn) *BaseMode
- func (b *BaseMode) SetKeymaps(k []Keymap) *BaseMode
- func (b *BaseMode) SetPrevCommand(c Command)
- func (b *BaseMode) SetSelectItems(items []*terminal.SelectItem)
- type Client
- func (c *Client) ActionCopyMsg(msg string) error
- func (c *Client) AppendSelectItem(item *terminal.SelectItem) *Client
- func (c *Client) ClearSelectFiles() *Client
- func (c *Client) DisableCache() *Client
- func (c *Client) DisableFilter() *Client
- func (c *Client) Download() error
- func (c *Client) Draw() error
- func (c *Client) DrawCache() error
- func (c *Client) DrawCacheNormal() error
- func (c *Client) DrawCommand()
- func (c *Client) DrawConfirm()
- func (c *Client) DrawDetail()
- func (c *Client) DrawInput(prefix, text string)
- func (c *Client) DrawInputKey()
- func (c *Client) DrawLeft() error
- func (c *Client) DrawMessage(text string)
- func (c *Client) DrawMid() error
- func (c *Client) DrawMidData() error
- func (c *Client) DrawNormal() error
- func (c *Client) DrawTitle(text string)
- func (c *Client) EnableCache() *Client
- func (c *Client) EnableModeNormal() *Client
- func (c *Client) Enter() error
- func (c *Client) Exec() error
- func (c *Client) GetLeftDir() string
- func (c *Client) GetMidDir() string
- func (c *Client) GetMidSelectFile() *bdpan.FileInfoDto
- func (c *Client) GetMidSelectItems() []*terminal.SelectItem
- func (c *Client) GetMidSelectSystem() *SystemInfo
- func (c *Client) GetMode() Mode
- func (c *Client) GetModeDrawRange() (StartX, StartY, EndX, EndY int)
- func (c *Client) GetModeNormalEndY() int
- func (c *Client) GetSelectFile() *bdpan.FileInfoDto
- func (c *Client) GetSelectFilePaths() []string
- func (c *Client) GetSelectNames() []string
- func (c *Client) HandleCommandKeymap(k Keymap) error
- func (c *Client) HandleCommonKeymap(k Keymap) error
- func (c *Client) HandleConfirmKeymap(k Keymap) error
- func (c *Client) HandleEventKey() error
- func (c *Client) HandleHelpKeymap(k Keymap) error
- func (c *Client) HandleKeymapKeymap(k Keymap) error
- func (c *Client) HandleNormalKeymap(k Keymap) error
- func (c *Client) HandleSyncKeymap(k Keymap) error
- func (c *Client) IsKeymapK(k Keymap) bool
- func (c *Client) MoveDown(step int)
- func (c *Client) MoveLeft()
- func (c *Client) MoveUp(step int)
- func (c *Client) NewNormalMode() *NormalMode
- func (c *Client) RefreshUsed() error
- func (c *Client) RemoveSelectItem(item *terminal.SelectItem) *Client
- func (c *Client) SetCommandMode(nextMode ModeInterface) *Client
- func (c *Client) SetConfirmMode(ensureC Command, msg string) *Client
- func (c *Client) SetCurrSelectFiles() *Client
- func (c *Client) SetHelpMode() *Client
- func (c *Client) SetKeymapMode() *Client
- func (c *Client) SetM(m ModeInterface) *Client
- func (c *Client) SetMidFile(file *bdpan.FileInfoDto) *Client
- func (c *Client) SetMode(m Mode) *Client
- func (c *Client) SetNormalAction(a SystemAction) *Client
- func (c *Client) SetNormalMode() *Client
- func (c *Client) SetSelectItems() *Client
- func (c *Client) SetSyncMode() *Client
- func (c *Client) SetUser(u *bdpan.UserInfoDto) *Client
- func (c *Client) ShowSystem()
- func (c Client) Size() (w, h int)
- type CollectInfo
- type Command
- type CommandFn
- type CommandMode
- type ConfirmMode
- type DownloadCommand
- type FileInfo
- type FileSelectCache
- type HelpMode
- type Keymap
- type KeymapAction
- type KeymapFn
- type KeymapMode
- type Mode
- type ModeInterface
- type NormalMode
- type SyncInfo
- type SyncMode
- type SystemAction
- type SystemInfo
Constants ¶
View Source
const ( CommandGoto Command = "goto" CommandGotoPrev = "goto prev" CommandGotoNext = "goto next" CommandGotoRoot = "goto /" CommandCursorMoveHome = "cursor_move_home" CommandCursorMoveEnd = "cursor_move_end" CommandCursorMoveUp = "cursor_move_up" CommandCursorMovePageUp = "cursor_move_page_up" CommandCursorMoveHalfPageUp = "cursor_move_half_page_up" CommandCursorMoveDown = "cursor_move_down" CommandCursorMovePageDown = "cursor_move_page_down" CommandCursorMoveHalfPageDown = "cursor_move_half_page_down" CommandCursorMoveLeft = "cursor_move_left" CommandCursorMoveRight = "cursor_move_right" CommandCopyDirpath = "copy_dirpath" CommandCopyFilename = "copy_filename" CommandCopyFilepath = "copy_filepath" CommandCopyFile = "copy_file" CommandCutFile = "cut_file" CommandPasteFile = "paste_file" CommandDownloadFile = "download_file" CommandSyncExec = "sync_exec" CommandCollectTrigger = "trigger_collect" // 模式切换 CommandKeymap = "keymap" CommandHelp = "help" CommandSync = "sync" // 功能命令 CommandFilter = "filter" // 过滤 CommandSystem = "system" CommandInput = "input" // 输入 CommandBackspace = "backspace" CommandEnter = "enter" CommandEnsure = "ensure" // 确认 CommandReload = "reload" CommandDelete = "delete" CommandSelect = "select" CommandQuit = "quit" )
View Source
const ( ModeNormal Mode = "normal" ModeConfirm = "confirm" ModeKeymap = "keymap" ModeHelp = "help" ModeSync = "sync" ModeCommand = "command" ModeFilter = "filter" )
Variables ¶
View Source
var ( KeymapCursorMoveDown1 = NewKeymapN([]string{"j"}, CommandCursorMoveDown). SetDesc("光标向下移动一行") KeymapCursorMoveDown2 = NewKeymapN([]string{tcell.KeyNames[tcell.KeyDown]}, CommandCursorMoveDown). SetDesc("光标向下移动一行") KeymapCursorMoveUp1 = NewKeymapN([]string{"k"}, CommandCursorMoveUp). SetDesc("光标向上移动一行") KeymapCursorMoveUp2 = NewKeymapN([]string{tcell.KeyNames[tcell.KeyUp]}, CommandCursorMoveUp). SetDesc("光标向上移动一行") KeymapEnter = NewKeymapN([]string{tcell.KeyNames[tcell.KeyEnter]}, CommandEnter). SetDesc("确定") KeymapInput = NewKeymapN([]string{""}, CommandInput). SetDesc("输入") KeymapBackspace1 = NewKeymapN([]string{tcell.KeyNames[tcell.KeyBackspace]}, CommandBackspace). SetDesc("退格") KeymapBackspace2 = NewKeymapN([]string{tcell.KeyNames[tcell.KeyBackspace2]}, CommandBackspace). SetDesc("退格") KeymapQuit1 = NewKeymapN([]string{tcell.KeyNames[tcell.KeyEscape]}, CommandQuit). SetDesc("退出") KeymapQuit2 = NewKeymapN([]string{tcell.KeyNames[tcell.KeyCtrlC]}, CommandQuit). SetDesc("退出") KeymapQuit3 = NewKeymapN([]string{"q"}, CommandQuit). SetDesc("退出") KeymapHelp = NewKeymapN([]string{"?"}, CommandHelp). SetDesc("帮助") NormalKeymaps = []Keymap{ NewKeymapN([]string{"?"}, CommandHelp).SetDesc("帮助"), NewKeymapN([]string{"/"}, CommandFilter).SetDesc("过滤"), NewKeymapN([]string{"s"}, CommandSync).SetDesc("同步"), NewKeymapN([]string{"c"}, CommandCollectTrigger).SetDesc("触发收藏或取消操作"), NewKeymapN([]string{","}, CommandSystem).SetDesc("文件源"), KeymapCursorMoveDown1, KeymapCursorMoveDown2, KeymapCursorMoveUp1, KeymapCursorMoveUp2, NewKeymapN([]string{"h"}, CommandGotoPrev). SetDesc("返回上一层目录"), NewKeymapN([]string{"G"}, CommandCursorMoveEnd). SetDesc("光标跳转到最后一行"), NewKeymapN( []string{tcell.KeyNames[tcell.KeyCtrlD]}, CommandCursorMoveHalfPageDown, ).SetDesc("光标向下移动半页"), NewKeymapN( []string{tcell.KeyNames[tcell.KeyCtrlU]}, CommandCursorMoveHalfPageUp, ).SetDesc("光标向上移动半页"), NewKeymapN( []string{tcell.KeyNames[tcell.KeyCtrlF]}, CommandCursorMovePageDown, ).SetDesc("光标向下移动一页"), NewKeymapN( []string{tcell.KeyNames[tcell.KeyCtrlB]}, CommandCursorMovePageUp, ).SetDesc("光标向上移动一页"), NewKeymapN([]string{"l"}, CommandEnter). SetDesc("选中文件,进入下一层目录或下载文件"), NewKeymapN([]string{tcell.KeyNames[tcell.KeyRight]}, CommandEnter). SetDesc("选中文件,进入下一层目录或下载文件"), NewKeymapN([]string{tcell.KeyNames[tcell.KeyEnter]}, CommandEnter). SetDesc("选中文件,进入下一层目录或下载文件"), NewKeymapN([]string{"x"}, CommandCutFile). SetDesc("剪切文件"), NewKeymapN([]string{"D"}, CommandDelete). SetDesc("删除文件"), NewKeymapN([]string{"d"}, CommandDownloadFile). SetDesc("下载文件"), NewKeymapN([]string{"R"}, CommandReload). SetDesc("重新加载目录"), NewKeymapN([]string{" "}, CommandSelect). SetDesc("选中光标所在行"), } CommandKeymaps = []Keymap{ KeymapEnter, KeymapBackspace1, KeymapBackspace2, KeymapQuit1, KeymapQuit2, KeymapQuit3, } SyncKeymaps = []Keymap{ NewKeymapN([]string{"e"}, CommandSyncExec). SetDesc("执行同步"), KeymapEnter, KeymapCursorMoveDown1, KeymapCursorMoveDown2, KeymapCursorMoveUp1, KeymapCursorMoveUp2, } ConfirmKeymaps = []Keymap{ NewKeymapN([]string{"y"}, CommandEnsure). SetDesc("确认"), NewKeymapN([]string{"h"}, CommandCursorMoveLeft). SetDesc("光标向左移动一个"), NewKeymapN([]string{"l"}, CommandCursorMoveRight). SetDesc("光标向右移动一个"), } HelpKeymaps = []Keymap{} CommonKeymaps = []Keymap{ KeymapQuit1, KeymapQuit2, KeymapQuit3, KeymapHelp, } KeymapKeymaps = []Keymap{ KeymapHelp, NewKeymapN([]string{"y", "d"}, CommandCopyDirpath). SetDesc("复制文件夹路径"), NewKeymapN([]string{"y", "n"}, CommandCopyFilename). SetDesc("复制文件名"), NewKeymapN([]string{"y", "p"}, CommandCopyFilepath). SetDesc("复制文件路径"), NewKeymapN([]string{"y", "y"}, CommandCopyFile). SetDesc("复制文件"), NewKeymapN([]string{"g", "g"}, CommandCursorMoveHome). SetDesc("移动光标到最上层"), NewKeymapN([]string{"g", "r"}, CommandGotoRoot). SetDesc("进入根目录"), NewKeymapN([]string{"p", "p"}, CommandPasteFile).SetDesc("粘贴文件"), } ModeKeymapsMap = map[Mode][]Keymap{ ModeConfirm: ConfirmKeymaps, ModeNormal: NormalKeymaps, ModeSync: SyncKeymaps, ModeKeymap: KeymapKeymaps, } )
View Source
var BottomErrs = []error{ ErrNotCopyFile, ErrActionFail, bdpan.ErrPathExists, ErrNoFileSelect, ErrNoTypeToPaste, }
View Source
var (
CacheSyncModelMap = make(map[string]*bdpan.SyncModel, 0)
)
View Source
var ErrActionFail = errors.New("操作失败")
View Source
var ErrFileExists = errors.New("文件已存在")
View Source
var ErrNoFileSelect = errors.New("请先选择文件")
View Source
var ErrNoTypeToPaste = errors.New("请先进行复制或剪切操作")
View Source
var ErrNotCopyFile = errors.New("请先使用 yy 复制文件")
View Source
var ErrQuit = errors.New("quit bdpan")
View Source
var (
Log = bdpan.Log
)
Functions ¶
func CanCacheError ¶
func CancelCollect ¶
func CancelCollect(file *bdpan.FileInfoDto) error
func ConverFilesToSelectItems ¶
func ConverFilesToSelectItems(s *terminal.Select, files []*bdpan.FileInfoDto) []*terminal.SelectItem
func FillCacheToSelect ¶
填充文件数据到 select 组件
func FillFileToSelect ¶
填充文件数据到 select 组件
func FillSyncToSelect ¶
func FillSyncToSelect(s *terminal.Select, file *bdpan.FileInfoDto) error
func FillSystemToSelect ¶
func FillSystemToSelect(s *terminal.Select, action SystemAction) error
func FilterFileFiles ¶
func FilterFileFiles(files []*bdpan.FileInfoDto) (filterFiles []*bdpan.FileInfoDto)
func GetAllCacheFiles ¶
func GetAllCacheFiles() []*bdpan.FileInfoDto
func GetAllLocalFiles ¶
func GetAllLocalFiles() (files []*bdpan.FileInfoDto, err error)
func GetCacheSelectIndex ¶
func GetCacheSelectIndex(a SystemAction) (i int, f bool)
func GetCollectFiles ¶
func GetCollectFiles() []*bdpan.FileInfoDto
func GetRootFile ¶
func GetRootFile() *bdpan.FileInfoDto
func GetSyncModelsByFilePath ¶
func IsCollect ¶
func IsCollect(file *bdpan.FileInfoDto) bool
func IsInErrors ¶
func IsSync ¶
func IsSync(file *bdpan.FileInfoDto) bool
func NewHelpItems ¶
func NewSystemSelectItem ¶
func NewSystemSelectItem(icon, name string, action SystemAction) *terminal.SelectItem
func RefreshSyncModelCache ¶
func RefreshSyncModelCache()
func SaveCollect ¶
func SaveCollect(file *bdpan.FileInfoDto) error
func SetCacheSelectIndex ¶
func SetCacheSelectIndex(a SystemAction, i int)
Types ¶
type BaseMode ¶
type BaseMode struct { T *terminal.Terminal Mode Mode KeymapFn KeymapFn Keymaps []Keymap PrevEventKey *tcell.EventKey CurrEventKey *tcell.EventKey PrevCommand Command SelectItems []*terminal.SelectItem }
func (*BaseMode) AppendSelectItems ¶
func (b *BaseMode) AppendSelectItems(item *terminal.SelectItem)
func (*BaseMode) ClearPrevCommand ¶
func (b *BaseMode) ClearPrevCommand()
func (*BaseMode) ClearSelectItems ¶
func (b *BaseMode) ClearSelectItems()
func (*BaseMode) GetKeymapFn ¶
func (*BaseMode) GetKeymaps ¶
func (*BaseMode) GetPrevCommand ¶
func (*BaseMode) GetSelectItems ¶
func (b *BaseMode) GetSelectItems() []*terminal.SelectItem
func (*BaseMode) SetEventKey ¶
func (b *BaseMode) SetEventKey(ev *tcell.EventKey)
func (*BaseMode) SetKeymapFn ¶
func (*BaseMode) SetKeymaps ¶
func (*BaseMode) SetPrevCommand ¶
func (*BaseMode) SetSelectItems ¶
func (b *BaseMode) SetSelectItems(items []*terminal.SelectItem)
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) AppendSelectItem ¶
func (c *Client) AppendSelectItem(item *terminal.SelectItem) *Client
func (*Client) ClearSelectFiles ¶
func (*Client) DisableCache ¶
func (*Client) DisableFilter ¶
func (*Client) DrawCacheNormal ¶
func (*Client) DrawConfirm ¶
func (c *Client) DrawConfirm()
func (*Client) DrawDetail ¶
func (c *Client) DrawDetail()
func (*Client) DrawMidData ¶
func (*Client) DrawNormal ¶
func (*Client) EnableCache ¶
func (*Client) EnableModeNormal ¶
func (*Client) GetLeftDir ¶
func (*Client) GetMidSelectFile ¶
func (c *Client) GetMidSelectFile() *bdpan.FileInfoDto
func (*Client) GetMidSelectItems ¶
func (c *Client) GetMidSelectItems() []*terminal.SelectItem
func (*Client) GetMidSelectSystem ¶
func (c *Client) GetMidSelectSystem() *SystemInfo
func (*Client) GetModeDrawRange ¶
func (*Client) GetSelectFile ¶
func (c *Client) GetSelectFile() *bdpan.FileInfoDto
func (*Client) GetSelectFilePaths ¶
func (*Client) GetSelectNames ¶
func (*Client) HandleCommandKeymap ¶
func (*Client) HandleCommonKeymap ¶
func (*Client) HandleConfirmKeymap ¶
func (*Client) HandleEventKey ¶
func (*Client) HandleHelpKeymap ¶
func (*Client) HandleKeymapKeymap ¶
func (*Client) HandleNormalKeymap ¶
func (*Client) HandleSyncKeymap ¶
func (*Client) NewNormalMode ¶
func (c *Client) NewNormalMode() *NormalMode
func (*Client) RemoveSelectItem ¶
func (c *Client) RemoveSelectItem(item *terminal.SelectItem) *Client
func (*Client) SetCommandMode ¶
func (c *Client) SetCommandMode(nextMode ModeInterface) *Client
--------------------------- CommandMode ---------------------------
func (*Client) SetConfirmMode ¶
--------------------------- ConfirmMode ---------------------------
func (*Client) SetCurrSelectFiles ¶
func (*Client) SetHelpMode ¶
--------------------------- HelpMode ---------------------------
func (*Client) SetKeymapMode ¶
--------------------------- KeymapMode ---------------------------
func (*Client) SetM ¶
func (c *Client) SetM(m ModeInterface) *Client
func (*Client) SetMidFile ¶
func (c *Client) SetMidFile(file *bdpan.FileInfoDto) *Client
func (*Client) SetNormalAction ¶
func (c *Client) SetNormalAction(a SystemAction) *Client
func (*Client) SetNormalMode ¶
--------------------------- NormalMode ---------------------------
func (*Client) SetSelectItems ¶
func (*Client) SetSyncMode ¶
--------------------------- SyncMode ---------------------------
func (*Client) ShowSystem ¶
func (c *Client) ShowSystem()
type CollectInfo ¶
type CollectInfo struct { File *bdpan.FileInfoDto `json:"file"` CreateTime time.Time `json:"create_time"` }
func NewCollect ¶
func NewCollect(file *bdpan.FileInfoDto) CollectInfo
type CommandMode ¶
type CommandMode struct { *BaseMode NextMode ModeInterface Prefix string Input string }
func NewCommandMode ¶
func NewCommandMode(prefix string) *CommandMode
func (*CommandMode) GetKeymap ¶
func (c *CommandMode) GetKeymap() Keymap
func (*CommandMode) SetInput ¶
func (m *CommandMode) SetInput(t string) *CommandMode
func (*CommandMode) SetNextMode ¶
func (m *CommandMode) SetNextMode(mi ModeInterface) *CommandMode
type ConfirmMode ¶
func NewConfirmMode ¶
func NewConfirmMode(t *terminal.Terminal, ensureC Command, msg string) *ConfirmMode
type DownloadCommand ¶
type DownloadCommand struct { From string OutputDir string OutputPath string IsSync bool IsRecursion bool IsVerbose bool }
func (DownloadCommand) Download ¶
func (d DownloadCommand) Download(file *bdpan.FileInfoDto) error
func (DownloadCommand) Run ¶
func (d DownloadCommand) Run() error
type FileSelectCache ¶
type FileSelectCache struct { Dir string Files []*bdpan.FileInfoDto SelectIndex int }
func GetFileSelectCache ¶
func GetFileSelectCache(dir string) *FileSelectCache
func NewFileSelectCache ¶
func NewFileSelectCache(dir string, s *terminal.Select, files []*bdpan.FileInfoDto) *FileSelectCache
func (*FileSelectCache) Save ¶
func (f *FileSelectCache) Save()
type HelpMode ¶
type Keymap ¶
type Keymap struct { R rune Key tcell.Key Keys []string Command Command CommandString string Msg string Desc string RelKeys []Keymap }
func NewKeymapN ¶
func (Keymap) SetCommandString ¶
type KeymapAction ¶
type KeymapAction int
type KeymapMode ¶
func NewKeymapMode ¶
func NewKeymapMode(t *terminal.Terminal, currEK *tcell.EventKey) *KeymapMode
------------------------------
KeymapMode
------------------------------
func (*KeymapMode) Draw ¶
func (k *KeymapMode) Draw() error
type ModeInterface ¶
type ModeInterface interface { GetMode() Mode GetKeymapFn() KeymapFn GetKeymaps() []Keymap GetKeymap() Keymap SetEventKey(ev *tcell.EventKey) IsKey(Keymap) bool Draw() error ClearPrevCommand() SetPrevCommand(c Command) GetPrevCommand() Command ClearSelectItems() SetSelectItems([]*terminal.SelectItem) AppendSelectItems(*terminal.SelectItem) GetSelectItems() []*terminal.SelectItem }
type NormalMode ¶
type NormalMode struct {
*BaseMode
}
func NewNormalMode ¶
func NewNormalMode() *NormalMode
func (*NormalMode) GetKeymap ¶
func (n *NormalMode) GetKeymap() Keymap
type SyncMode ¶
type SyncMode struct { *BaseMode Term *terminal.Select SelectItem *terminal.SelectItem }
func NewSyncMode ¶
func NewSyncMode( t *terminal.Terminal, item *terminal.SelectItem, StartX, StartY, EndX, EndY int, ) *SyncMode
------------------------------
SyncMode
------------------------------
type SystemAction ¶
type SystemAction int
const ( ActionSystem SystemAction = iota ActionFile ActionBigFile ActionSync ActionCollect )
type SystemInfo ¶
type SystemInfo struct { Icon string Action SystemAction // contains filtered or unexported fields }
func (SystemInfo) Id ¶
func (i SystemInfo) Id() string
func (SystemInfo) Name ¶
func (i SystemInfo) Name() string
func (SystemInfo) String ¶
func (i SystemInfo) String() string
Click to show internal directories.
Click to hide internal directories.