application

package
v0.0.0-...-94763f3 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddApp

func AddApp(app applicationInterface)

func BeforeClose

func BeforeClose(ctx context.Context) bool

func GetApps

func GetApps() []applicationInterface

func Shutdown

func Shutdown(ctx context.Context)

func Startup

func Startup(ctx context.Context)

Types

type ConfigApp

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

func NewConfigApp

func NewConfigApp() *ConfigApp

func (*ConfigApp) Close

func (app *ConfigApp) Close(ctx context.Context)

func (*ConfigApp) GetAllValues

func (app *ConfigApp) GetAllValues() (map[string]string, error)

func (*ConfigApp) GetConfigValue

func (app *ConfigApp) GetConfigValue(key string) (string, error)

func (*ConfigApp) PutAllValues

func (app *ConfigApp) PutAllValues(values map[string]string) error

func (*ConfigApp) PutConfigValue

func (app *ConfigApp) PutConfigValue(key, value string) error

func (*ConfigApp) Shutdown

func (app *ConfigApp) Shutdown(ctx context.Context)

func (*ConfigApp) Startup

func (app *ConfigApp) Startup(ctx context.Context)

Startup is called when the app starts. The context is saved so we can call the runtime methods

type FileApp

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

func NewFileApp

func NewFileApp() *FileApp

NewApp creates a new App application struct

func (*FileApp) Close

func (app *FileApp) Close(ctx context.Context)

func (*FileApp) DeletefileByPath

func (app *FileApp) DeletefileByPath(path string)

func (*FileApp) GetAllDir

func (app *FileApp) GetAllDir() []*fileutil.Dir

Greet returns a greeting for the given name

func (*FileApp) GetByRootpath

func (app *FileApp) GetByRootpath(rootpath string) []*fileutil.Dir

func (*FileApp) GetByRootpaths

func (app *FileApp) GetByRootpaths() []*RootpathInfo

func (*FileApp) OpenDirectoryDialog

func (app *FileApp) OpenDirectoryDialog() string

func (*FileApp) OpenfileByPath

func (app *FileApp) OpenfileByPath(path string)

func (*FileApp) RemoveAll2Trash

func (app *FileApp) RemoveAll2Trash(path string)

func (*FileApp) Shutdown

func (app *FileApp) Shutdown(ctx context.Context)

func (*FileApp) Startup

func (app *FileApp) Startup(ctx context.Context)

Startup is called when the app starts. The context is saved so we can call the runtime methods

type RootpathInfo

type RootpathInfo struct {
	Name     string
	Label    string
	Rootpath string
}

Jump to

Keyboard shortcuts

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