implservice

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2023 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AppDataFileDB        = "wpm.db"
	AppDataMainGit       = "main/.git"
	AppDataBackupDumpDir = "backups/dumps"
	AppDataBackupExeDir  = "backups/executables"
)

定义 app-data 文件名

Variables

This section is empty.

Functions

This section is empty.

Types

type AboutServiceImpl added in v0.0.7

type AboutServiceImpl struct {
	markup.Component `id:"AboutService"`

	Profile string `inject:"${application.profiles.active}"`

	Name       string `inject:"${application.about.name}"`
	Title      string `inject:"${application.about.title}"`
	Copyright  string `inject:"${application.about.copyright}"`
	ServerPort int    `inject:"${server.port}"`

	EnableDebug bool `inject:"${wpm.options.debug}"`

	PlatformService   service.PlatformService   `inject:"#PlatformService"`
	ProfileService    service.ProfileService    `inject:"#ProfileService"`
	AppRuntimeService service.AppRuntimeService `inject:"#AppRuntimeService"`
}

AboutServiceImpl ...

func (*AboutServiceImpl) GetInfo added in v0.0.7

func (inst *AboutServiceImpl) GetInfo(ctx context.Context) (*vo.About, error)

GetInfo ...

func (*AboutServiceImpl) IsDebug added in v0.1.1

func (inst *AboutServiceImpl) IsDebug() bool

IsDebug ...

func (*AboutServiceImpl) IsRelease added in v0.1.1

func (inst *AboutServiceImpl) IsRelease() bool

IsRelease ...

type AppDataServiceImpl

type AppDataServiceImpl struct {
	markup.Component `id:"AppDataService"`

	ProfileService    service.ProfileService    `inject:"#ProfileService"`
	AppRuntimeService service.AppRuntimeService `inject:"#AppRuntimeService"`

	DatabaseName string `inject:"${datasource.wpm.database}"`
	// contains filtered or unexported fields
}

AppDataServiceImpl ...

func (*AppDataServiceImpl) GetAppDataDirectory

func (inst *AppDataServiceImpl) GetAppDataDirectory() string

GetAppDataDirectory 。。。

func (*AppDataServiceImpl) GetBackupDumpDirectory added in v0.1.1

func (inst *AppDataServiceImpl) GetBackupDumpDirectory() string

GetBackupDumpDirectory 。。。

func (*AppDataServiceImpl) GetBackupExecutableFile added in v0.1.1

func (inst *AppDataServiceImpl) GetBackupExecutableFile(sum util.Hex) string

GetBackupExecutableFile ...

func (*AppDataServiceImpl) GetMainRepositoryPath

func (inst *AppDataServiceImpl) GetMainRepositoryPath() string

GetMainRepositoryPath ...

func (*AppDataServiceImpl) GetSQLiteDBFile

func (inst *AppDataServiceImpl) GetSQLiteDBFile() string

GetSQLiteDBFile ...

func (*AppDataServiceImpl) Ready

func (inst *AppDataServiceImpl) Ready() bool

Ready ...

func (*AppDataServiceImpl) Setup

func (inst *AppDataServiceImpl) Setup() error

Setup ...

type ExampleServiceImpl

type ExampleServiceImpl struct {
	markup.Component `id:"ExampleService"`
}

ExampleServiceImpl ...

func (*ExampleServiceImpl) Find

func (inst *ExampleServiceImpl) Find(ctx context.Context, id dxo.ExampleID) (*dto.Example, error)

Find ...

func (*ExampleServiceImpl) Insert

func (inst *ExampleServiceImpl) Insert(ctx context.Context, o *dto.Example) (*dto.Example, error)

Insert ...

func (*ExampleServiceImpl) ListAll

func (inst *ExampleServiceImpl) ListAll(ctx context.Context) ([]*dto.Example, error)

ListAll ...

func (*ExampleServiceImpl) Remove

func (inst *ExampleServiceImpl) Remove(ctx context.Context, id dxo.ExampleID) error

Remove ...

func (*ExampleServiceImpl) Update

func (inst *ExampleServiceImpl) Update(ctx context.Context, id dxo.ExampleID, o *dto.Example) (*dto.Example, error)

Update ...

type FileQueryServiceImpl added in v0.0.7

type FileQueryServiceImpl struct {
	markup.Component `id:"FileQueryService"`

	HandlerRegistryList []filequery.HandlerRegistry `inject:".filequery-handler-registry"`
	// contains filtered or unexported fields
}

FileQueryServiceImpl ...

func (*FileQueryServiceImpl) Query added in v0.0.7

func (inst *FileQueryServiceImpl) Query(ctx context.Context, q *vo.FileQuery) (*vo.FileQuery, error)

Query ...

type FileSystemServiceImpl added in v0.0.12

type FileSystemServiceImpl struct {
	markup.Component `id:"FileSystemService"`
	// contains filtered or unexported fields
}

FileSystemServiceImpl ...

func (*FileSystemServiceImpl) FS added in v0.0.12

func (inst *FileSystemServiceImpl) FS() afs.FS

FS ...

func (*FileSystemServiceImpl) Path added in v0.0.12

func (inst *FileSystemServiceImpl) Path(path string) afs.Path

Path ...

type UUIDGenServiceImpl

type UUIDGenServiceImpl struct {
	markup.Component `id:"UUIDGenService" initMethod:"Init"`
	// contains filtered or unexported fields
}

UUIDGenServiceImpl ...

func (*UUIDGenServiceImpl) GenerateUUID

func (inst *UUIDGenServiceImpl) GenerateUUID(seed string) dxo.UUID

GenerateUUID ...

func (*UUIDGenServiceImpl) Init

func (inst *UUIDGenServiceImpl) Init() error

Init ...

Jump to

Keyboard shortcuts

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