backend

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2023 License: MIT Imports: 22 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Ctx     context.Context
	Log     *logrus.Logger
	Git     *internal.Git
	DB      *gorm.DB
	CfgFile string
	LogFile string
	DBFile  string
}

App ...

func NewApp added in v0.1.0

func NewApp() *App

NewApp ...

func (*App) BatchUploadFile added in v0.1.0

func (t *App) BatchUploadFile() *internal.Response

BatchUploadFile ...

func (*App) CheckFile added in v0.1.0

func (t *App) CheckFile(filepath string) error

checkFile 校验上传文件

func (*App) CopyFileUrl

func (t *App) CopyFileUrl(fileUrl string) *internal.Response

CopyFileUrl 复制链接到粘贴板

func (*App) DeleteFile

func (t *App) DeleteFile(filePath string) *internal.Response

DeleteFile 删除文件

func (*App) GetConfig

func (t *App) GetConfig() *internal.Response

GetConfig 获取配置信息

func (*App) GetList added in v0.0.6

func (t *App) GetList() *internal.Response

GetList 获取文件列表

func (*App) Menu added in v0.1.0

func (t *App) Menu() *menu.Menu

Menu 应用菜单

func (*App) OnBeforeClose added in v0.1.0

func (t *App) OnBeforeClose(ctx context.Context) bool

OnBeforeClose ...

func (*App) OnDomReady added in v0.1.0

func (t *App) OnDomReady(ctx context.Context)

OnDomReady ...

func (*App) OnShutdown added in v0.1.0

func (t *App) OnShutdown(ctx context.Context)

OnShutdown ...

func (*App) OnStartup added in v0.1.0

func (t *App) OnStartup(ctx context.Context)

OnStartup 应用启动

func (*App) SetConfig

func (t *App) SetConfig(content string) *internal.Response

SetConfig 更新配置信息

func (*App) SyncDatabase added in v0.1.0

func (t *App) SyncDatabase()

SyncDatabase 同步本地数据库文件到远程仓库

func (*App) UpdateFileName added in v0.0.5

func (t *App) UpdateFileName(filePath string, fileName string) *internal.Response

UpdateFileName 更新文件名称

func (*App) Upload added in v0.1.0

func (t *App) Upload(filepath string, clis ...bool) (string, error)

Upload ...

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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