implservice

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2023 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AppDataFileDB    = "wpm.db"
	AppDataMainGit   = "main/.git"
	AppDataBackupDir = "backups"
)

定义 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}"`

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

AboutServiceImpl ...

func (*AboutServiceImpl) GetInfo added in v0.0.7

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

GetInfo ...

type AppDataServiceImpl

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

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

	SQLiteDatabaseNameWithAppVersion bool `inject:"${datasource.wpm.database-name-with-version}"`
	// contains filtered or unexported fields
}

AppDataServiceImpl ...

func (*AppDataServiceImpl) GetAppDataDirectory

func (inst *AppDataServiceImpl) GetAppDataDirectory() string

GetAppDataDirectory 。。。

func (*AppDataServiceImpl) GetBackupDirectory added in v0.0.15

func (inst *AppDataServiceImpl) GetBackupDirectory() string

GetBackupDirectory 。。。

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 AppIconServiceImpl

type AppIconServiceImpl struct {
	markup.Component `id:"AppIconService" class:"life"`

	PropsName string              `inject:"${wpm.exe-icons.properties}"`
	Context   application.Context `inject:"context"`
	// contains filtered or unexported fields
}

AppIconServiceImpl ...

func (*AppIconServiceImpl) FillWithIconURL

func (inst *AppIconServiceImpl) FillWithIconURL(o1 *dto.Executable) error

FillWithIconURL ...

func (*AppIconServiceImpl) GetLifeRegistration

func (inst *AppIconServiceImpl) GetLifeRegistration() *application.LifeRegistration

GetLifeRegistration ...

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 LocalRepositoryFinderImpl

type LocalRepositoryFinderImpl struct {
	markup.Component `id:"LocalRepositoryFinder"`

	GitLibAgent store.LibAgent `inject:"#git-lib-agent"`
}

LocalRepositoryFinderImpl ...

func (*LocalRepositoryFinderImpl) Locate

Locate ...

func (*LocalRepositoryFinderImpl) Search

func (inst *LocalRepositoryFinderImpl) Search(ctx context.Context, path string, depthLimit int) ([]*dto.LocalRepository, error)

Search ...

type LocalRepositoryServiceImpl

type LocalRepositoryServiceImpl struct {
	markup.Component `id:"LocalRepositoryService"`

	LocalRepositoryDAO dao.LocalRepositoryDAO             `inject:"#LocalRepositoryDAO"`
	UUIDGenService     service.UUIDGenService             `inject:"#UUIDGenService"`
	RepoFinder         service.LocalRepositoryFinder      `inject:"#LocalRepositoryFinder"`
	LrStateLoader      service.LocalRepositoryStateLoader `inject:"#LocalRepositoryStateLoader"`
	FileSystemService  service.FileSystemService          `inject:"#FileSystemService"`
	GitLibAgent        store.LibAgent                     `inject:"#git-lib-agent"`
}

LocalRepositoryServiceImpl ...

func (*LocalRepositoryServiceImpl) ConvertDtoToEntity

func (inst *LocalRepositoryServiceImpl) ConvertDtoToEntity(o1 *dto.LocalRepository) (*entity.LocalRepository, error)

ConvertDtoToEntity ...

func (*LocalRepositoryServiceImpl) ConvertEntityToDto

func (inst *LocalRepositoryServiceImpl) ConvertEntityToDto(o1 *entity.LocalRepository) (*dto.LocalRepository, error)

ConvertEntityToDto ...

func (*LocalRepositoryServiceImpl) Find

Find ...

func (*LocalRepositoryServiceImpl) FindByName

FindByName ...

func (*LocalRepositoryServiceImpl) Insert

Insert ...

func (*LocalRepositoryServiceImpl) ListAll

ListAll ...

func (*LocalRepositoryServiceImpl) ListByIds added in v0.0.12

ListByIds ...

func (*LocalRepositoryServiceImpl) Remove

Remove ...

func (*LocalRepositoryServiceImpl) Update

Update ...

type LocalRepositoryStateLoaderImpl

type LocalRepositoryStateLoaderImpl struct {
	markup.Component `id:"LocalRepositoryStateLoader"`

	LocalRepoService service.LocalRepositoryService `inject:"#LocalRepositoryService"`
	Dao              dao.LocalRepositoryDAO         `inject:"#LocalRepositoryDAO"`
	GitLibAgent      store.LibAgent                 `inject:"#git-lib-agent"`
}

LocalRepositoryStateLoaderImpl ...

func (*LocalRepositoryStateLoaderImpl) LoadState

LoadState ...

type MainRepositoryServiceImpl

type MainRepositoryServiceImpl struct {
	markup.Component `id:"MainRepositoryService"`

	// MainRepoPath string         `inject:"${wpm.system-main-repository.path}"`
	AppDataService service.AppDataService `inject:"#AppDataService"`
	GitLA          store.LibAgent         `inject:"#git-lib-agent"`
	// contains filtered or unexported fields
}

MainRepositoryServiceImpl ...

func (*MainRepositoryServiceImpl) GetInfo

GetInfo ...

func (*MainRepositoryServiceImpl) GetRepository

func (inst *MainRepositoryServiceImpl) GetRepository(ctx context.Context) (store.Repository, error)

GetRepository ...

type RemoteRepositoryServiceImpl

type RemoteRepositoryServiceImpl struct {
	markup.Component `id:"RemoteRepositoryService"`
}

RemoteRepositoryServiceImpl ...

func (*RemoteRepositoryServiceImpl) Find

func (*RemoteRepositoryServiceImpl) FindByName

func (*RemoteRepositoryServiceImpl) Insert

func (*RemoteRepositoryServiceImpl) ListAll

func (*RemoteRepositoryServiceImpl) Remove

func (*RemoteRepositoryServiceImpl) Update

type RepositoryImportServiceImpl

type RepositoryImportServiceImpl struct {
	markup.Component `id:"RepositoryImportService"`

	RepositoryService service.LocalRepositoryService `inject:"#LocalRepositoryService"`
	RepoFinder        service.LocalRepositoryFinder  `inject:"#LocalRepositoryFinder"`
}

RepositoryImportServiceImpl ...

func (*RepositoryImportServiceImpl) Find

Find ...

func (*RepositoryImportServiceImpl) FindOrLocate

FindOrLocate ...

func (*RepositoryImportServiceImpl) Locate

Locate ...

func (*RepositoryImportServiceImpl) Save

Save ...

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