usecase

package
v0.0.0-...-f43331f Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandGateway

type CommandGateway interface {
	OpenShell(workDir string)
	OpenEditor(path string) error
}

type FileDto

type FileDto struct {
	Name       string
	Path       string
	FullPath   string
	Size       int64
	ModifiedAt time.Time
	FileType   string
}

type FileQueryInterface

type FileQueryInterface interface {
	ListFiles(path string) ([]FileDto, error)
}

type FileQueryUsecase

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

func NewFileQuery

func NewFileQuery(fileQuery FileQueryInterface) (*FileQueryUsecase, error)

func (*FileQueryUsecase) ListFiles

func (fileQueryUsecase *FileQueryUsecase) ListFiles(path string) ([]FileDto, error)

type FilerCommand

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

func NewFilerCommand

func NewFilerCommand(fileRepository file.Repository, filerRepository filer.Repository, commandGateway CommandGateway) *FilerCommand

func (*FilerCommand) ChangeDirectory

func (filerCommand *FilerCommand) ChangeDirectory(id string, destinationPath string) error

func (*FilerCommand) CreateNewFiler

func (filerCommand *FilerCommand) CreateNewFiler(initialPath string) (string, error)

func (*FilerCommand) CurrentPath

func (filerCommand *FilerCommand) CurrentPath(id string) string

func (*FilerCommand) OpenEditor

func (filerCommand *FilerCommand) OpenEditor(id string, path string)

func (*FilerCommand) OpenShell

func (filerCommand *FilerCommand) OpenShell(id string)

func (*FilerCommand) UpDirectory

func (filerCommand *FilerCommand) UpDirectory(id string) (string, error)

Jump to

Keyboard shortcuts

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