Documentation ¶
Index ¶
- Constants
- type AboutServiceImpl
- type AppDataServiceImpl
- type AppIconServiceImpl
- type ExampleServiceImpl
- func (inst *ExampleServiceImpl) Find(ctx context.Context, id dxo.ExampleID) (*dto.Example, error)
- func (inst *ExampleServiceImpl) Insert(ctx context.Context, o *dto.Example) (*dto.Example, error)
- func (inst *ExampleServiceImpl) ListAll(ctx context.Context) ([]*dto.Example, error)
- func (inst *ExampleServiceImpl) Remove(ctx context.Context, id dxo.ExampleID) error
- func (inst *ExampleServiceImpl) Update(ctx context.Context, id dxo.ExampleID, o *dto.Example) (*dto.Example, error)
- type ExecutableImportServiceImpl
- type ExecutableServiceImpl
- func (inst *ExecutableServiceImpl) Find(ctx context.Context, id dxo.ExecutableID) (*dto.Executable, error)
- func (inst *ExecutableServiceImpl) FindByPath(ctx context.Context, path string) (*dto.Executable, error)
- func (inst *ExecutableServiceImpl) Insert(ctx context.Context, o1 *dto.Executable) (*dto.Executable, error)
- func (inst *ExecutableServiceImpl) ListAll(ctx context.Context) ([]*dto.Executable, error)
- func (inst *ExecutableServiceImpl) Remove(ctx context.Context, id dxo.ExecutableID) error
- func (inst *ExecutableServiceImpl) Update(ctx context.Context, id dxo.ExecutableID, o1 *dto.Executable) (*dto.Executable, error)
- type FileQueryServiceImpl
- type IntentHandlerImpl
- type IntentTemplateServiceImpl
- func (inst *IntentTemplateServiceImpl) Find(ctx context.Context, id dxo.IntentTemplateID) (*dto.IntentTemplate, error)
- func (inst *IntentTemplateServiceImpl) Insert(ctx context.Context, o *dto.IntentTemplate) (*dto.IntentTemplate, error)
- func (inst *IntentTemplateServiceImpl) ListAll(ctx context.Context) ([]*dto.IntentTemplate, error)
- func (inst *IntentTemplateServiceImpl) Remove(ctx context.Context, id dxo.IntentTemplateID) error
- func (inst *IntentTemplateServiceImpl) Update(ctx context.Context, id dxo.IntentTemplateID, o *dto.IntentTemplate) (*dto.IntentTemplate, error)
- type LocalRepositoryFinderImpl
- type LocalRepositoryServiceImpl
- func (inst *LocalRepositoryServiceImpl) ConvertDtoToEntity(o1 *dto.LocalRepository) (*entity.LocalRepository, error)
- func (inst *LocalRepositoryServiceImpl) ConvertEntityToDto(o1 *entity.LocalRepository) (*dto.LocalRepository, error)
- func (inst *LocalRepositoryServiceImpl) Find(ctx context.Context, id dxo.LocalRepositoryID) (*dto.LocalRepository, error)
- func (inst *LocalRepositoryServiceImpl) FindByName(ctx context.Context, name string) (*dto.LocalRepository, error)
- func (inst *LocalRepositoryServiceImpl) Insert(ctx context.Context, o1 *dto.LocalRepository) (*dto.LocalRepository, error)
- func (inst *LocalRepositoryServiceImpl) ListAll(ctx context.Context) ([]*dto.LocalRepository, error)
- func (inst *LocalRepositoryServiceImpl) Remove(ctx context.Context, id dxo.LocalRepositoryID) error
- func (inst *LocalRepositoryServiceImpl) Update(ctx context.Context, id dxo.LocalRepositoryID, o1 *dto.LocalRepository) (*dto.LocalRepository, error)
- type LocalRepositoryStateLoaderImpl
- type MainRepositoryServiceImpl
- type MediaServiceImpl
- func (inst *MediaServiceImpl) Find(ctx context.Context, id dxo.MediaID) (*dto.Media, error)
- func (inst *MediaServiceImpl) FindByPath(ctx context.Context, path string) (*dto.Media, error)
- func (inst *MediaServiceImpl) Insert(ctx context.Context, o *dto.Media) (*dto.Media, error)
- func (inst *MediaServiceImpl) ListAll(ctx context.Context) ([]*dto.Media, error)
- func (inst *MediaServiceImpl) PrepareForDownload(ctx context.Context, me *dto.Media) (*dto.Media, error)
- func (inst *MediaServiceImpl) Remove(ctx context.Context, id dxo.MediaID) error
- func (inst *MediaServiceImpl) Update(ctx context.Context, id dxo.MediaID, o *dto.Media) (*dto.Media, error)
- type ProjectImportServiceImpl
- func (inst *ProjectImportServiceImpl) Find(ctx context.Context, o *vo.ProjectImport) (*vo.ProjectImport, error)
- func (inst *ProjectImportServiceImpl) FindOrLocate(ctx context.Context, o *vo.ProjectImport) (*vo.ProjectImport, error)
- func (inst *ProjectImportServiceImpl) Locate(ctx context.Context, o *vo.ProjectImport) (*vo.ProjectImport, error)
- func (inst *ProjectImportServiceImpl) Save(ctx context.Context, o *vo.ProjectImport) (*vo.ProjectImport, error)
- type ProjectServiceImpl
- func (inst *ProjectServiceImpl) Find(ctx context.Context, id dxo.ProjectID) (*dto.Project, error)
- func (inst *ProjectServiceImpl) FindByOwnerRepository(ctx context.Context, id dxo.LocalRepositoryID) ([]*dto.Project, error)
- func (inst *ProjectServiceImpl) Insert(ctx context.Context, o *dto.Project) (*dto.Project, error)
- func (inst *ProjectServiceImpl) ListAll(ctx context.Context) ([]*dto.Project, error)
- func (inst *ProjectServiceImpl) Remove(ctx context.Context, id dxo.ProjectID) error
- func (inst *ProjectServiceImpl) Update(ctx context.Context, id dxo.ProjectID, o *dto.Project) (*dto.Project, error)
- type RemoteRepositoryServiceImpl
- func (inst *RemoteRepositoryServiceImpl) Find(ctx context.Context, id dxo.RemoteRepositoryID) (*dto.RemoteRepository, error)
- func (inst *RemoteRepositoryServiceImpl) FindByName(ctx context.Context, name string) (*dto.RemoteRepository, error)
- func (inst *RemoteRepositoryServiceImpl) Insert(ctx context.Context, o *dto.RemoteRepository) (*dto.RemoteRepository, error)
- func (inst *RemoteRepositoryServiceImpl) ListAll(ctx context.Context) ([]*dto.RemoteRepository, error)
- func (inst *RemoteRepositoryServiceImpl) Remove(ctx context.Context, id dxo.RemoteRepositoryID) error
- func (inst *RemoteRepositoryServiceImpl) Update(ctx context.Context, id dxo.RemoteRepositoryID, o *dto.RemoteRepository) (*dto.RemoteRepository, error)
- type RepositoryImportServiceImpl
- func (inst *RepositoryImportServiceImpl) Find(ctx context.Context, o1 *vo.RepositoryImport) (*vo.RepositoryImport, error)
- func (inst *RepositoryImportServiceImpl) FindOrLocate(ctx context.Context, o1 *vo.RepositoryImport) (*vo.RepositoryImport, error)
- func (inst *RepositoryImportServiceImpl) Locate(ctx context.Context, o1 *vo.RepositoryImport) (*vo.RepositoryImport, error)
- func (inst *RepositoryImportServiceImpl) Save(ctx context.Context, vo1 *vo.RepositoryImport) (*vo.RepositoryImport, error)
- type RunIntentServiceImpl
- type UUIDGenServiceImpl
Constants ¶
const ( AppDataFileDB = "wpm.db" AppDataMainGit = "main/.git" )
定义 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}"` PlatformService service.PlatformService `inject:"#PlatformService"` ProfileService service.ProfileService `inject:"#ProfileService"` }
AboutServiceImpl ...
type AppDataServiceImpl ¶
type AppDataServiceImpl struct { markup.Component `id:"AppDataService"` ProfileService service.ProfileService `inject:"#ProfileService"` // contains filtered or unexported fields }
AppDataServiceImpl ...
func (*AppDataServiceImpl) GetAppDataDirectory ¶
func (inst *AppDataServiceImpl) GetAppDataDirectory() string
GetAppDataDirectory 。。。
func (*AppDataServiceImpl) GetMainRepositoryPath ¶
func (inst *AppDataServiceImpl) GetMainRepositoryPath() string
GetMainRepositoryPath ...
func (*AppDataServiceImpl) GetSQLiteDBFile ¶
func (inst *AppDataServiceImpl) GetSQLiteDBFile() string
GetSQLiteDBFile ...
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 ¶
ExampleServiceImpl ...
type ExecutableImportServiceImpl ¶
type ExecutableImportServiceImpl struct { markup.Component `id:"ExecutableImportService"` ExecutableService service.ExecutableService `inject:"#ExecutableService"` }
ExecutableImportServiceImpl ...
func (*ExecutableImportServiceImpl) Locate ¶
func (inst *ExecutableImportServiceImpl) Locate(ctx context.Context, o1 *vo.ExecutableImport) (*vo.ExecutableImport, error)
Locate ...
func (*ExecutableImportServiceImpl) Save ¶
func (inst *ExecutableImportServiceImpl) Save(ctx context.Context, o1 *vo.ExecutableImport) (*vo.ExecutableImport, error)
Save ...
type ExecutableServiceImpl ¶
type ExecutableServiceImpl struct { markup.Component `id:"ExecutableService"` ExecutableDAO dao.ExecutableDAO `inject:"#ExecutableDAO"` IconService service.AppIconService `inject:"#AppIconService"` }
ExecutableServiceImpl ...
func (*ExecutableServiceImpl) Find ¶
func (inst *ExecutableServiceImpl) Find(ctx context.Context, id dxo.ExecutableID) (*dto.Executable, error)
Find ...
func (*ExecutableServiceImpl) FindByPath ¶
func (inst *ExecutableServiceImpl) FindByPath(ctx context.Context, path string) (*dto.Executable, error)
FindByPath ...
func (*ExecutableServiceImpl) Insert ¶
func (inst *ExecutableServiceImpl) Insert(ctx context.Context, o1 *dto.Executable) (*dto.Executable, error)
Insert ...
func (*ExecutableServiceImpl) ListAll ¶
func (inst *ExecutableServiceImpl) ListAll(ctx context.Context) ([]*dto.Executable, error)
ListAll ...
func (*ExecutableServiceImpl) Remove ¶
func (inst *ExecutableServiceImpl) Remove(ctx context.Context, id dxo.ExecutableID) error
Remove ...
func (*ExecutableServiceImpl) Update ¶
func (inst *ExecutableServiceImpl) Update(ctx context.Context, id dxo.ExecutableID, o1 *dto.Executable) (*dto.Executable, 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 ...
type IntentHandlerImpl ¶
IntentHandlerImpl ...
func (*IntentHandlerImpl) HandleIntent ¶
func (inst *IntentHandlerImpl) HandleIntent(i *dto.Intent) error
HandleIntent ...
type IntentTemplateServiceImpl ¶
type IntentTemplateServiceImpl struct { markup.Component `id:"IntentTemplateService"` IntentTempDAO dao.IntentTemplateDAO `inject:"#IntentTemplateDAO"` }
IntentTemplateServiceImpl ...
func (*IntentTemplateServiceImpl) Find ¶
func (inst *IntentTemplateServiceImpl) Find(ctx context.Context, id dxo.IntentTemplateID) (*dto.IntentTemplate, error)
func (*IntentTemplateServiceImpl) Insert ¶
func (inst *IntentTemplateServiceImpl) Insert(ctx context.Context, o *dto.IntentTemplate) (*dto.IntentTemplate, error)
func (*IntentTemplateServiceImpl) ListAll ¶
func (inst *IntentTemplateServiceImpl) ListAll(ctx context.Context) ([]*dto.IntentTemplate, error)
func (*IntentTemplateServiceImpl) Remove ¶
func (inst *IntentTemplateServiceImpl) Remove(ctx context.Context, id dxo.IntentTemplateID) error
func (*IntentTemplateServiceImpl) Update ¶
func (inst *IntentTemplateServiceImpl) Update(ctx context.Context, id dxo.IntentTemplateID, o *dto.IntentTemplate) (*dto.IntentTemplate, error)
type LocalRepositoryFinderImpl ¶
type LocalRepositoryFinderImpl struct { markup.Component `id:"LocalRepositoryFinder"` GitLibAgent store.LibAgent `inject:"#git-lib-agent"` }
LocalRepositoryFinderImpl ...
func (*LocalRepositoryFinderImpl) Locate ¶
func (inst *LocalRepositoryFinderImpl) Locate(ctx context.Context, path string) (*dto.LocalRepository, error)
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"` UUIDGenService service.UUIDGenService `inject:"#UUIDGenService"` RepoFinder service.LocalRepositoryFinder `inject:"#LocalRepositoryFinder"` LocalRepositoryDAO dao.LocalRepositoryDAO `inject:"#LocalRepositoryDAO"` }
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 ¶
func (inst *LocalRepositoryServiceImpl) Find(ctx context.Context, id dxo.LocalRepositoryID) (*dto.LocalRepository, error)
Find ...
func (*LocalRepositoryServiceImpl) FindByName ¶
func (inst *LocalRepositoryServiceImpl) FindByName(ctx context.Context, name string) (*dto.LocalRepository, error)
FindByName ...
func (*LocalRepositoryServiceImpl) Insert ¶
func (inst *LocalRepositoryServiceImpl) Insert(ctx context.Context, o1 *dto.LocalRepository) (*dto.LocalRepository, error)
Insert ...
func (*LocalRepositoryServiceImpl) ListAll ¶
func (inst *LocalRepositoryServiceImpl) ListAll(ctx context.Context) ([]*dto.LocalRepository, error)
ListAll ...
func (*LocalRepositoryServiceImpl) Remove ¶
func (inst *LocalRepositoryServiceImpl) Remove(ctx context.Context, id dxo.LocalRepositoryID) error
Remove ...
func (*LocalRepositoryServiceImpl) Update ¶
func (inst *LocalRepositoryServiceImpl) Update(ctx context.Context, id dxo.LocalRepositoryID, o1 *dto.LocalRepository) (*dto.LocalRepository, error)
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 ¶
func (inst *LocalRepositoryStateLoaderImpl) LoadState(ctx context.Context, repo0 *dto.LocalRepository) error
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 ¶
func (inst *MainRepositoryServiceImpl) GetInfo(ctx context.Context) (*dto.MainRepository, error)
GetInfo ...
func (*MainRepositoryServiceImpl) GetRepository ¶
func (inst *MainRepositoryServiceImpl) GetRepository(ctx context.Context) (store.Repository, error)
GetRepository ...
type MediaServiceImpl ¶
type MediaServiceImpl struct { markup.Component `id:"MediaService"` MediaDAO dao.MediaDAO `inject:"#MediaDAO"` SysMainRepoService service.MainRepositoryService `inject:"#MainRepositoryService"` }
MediaServiceImpl ...
func (*MediaServiceImpl) FindByPath ¶
FindByPath ...
func (*MediaServiceImpl) PrepareForDownload ¶
func (inst *MediaServiceImpl) PrepareForDownload(ctx context.Context, me *dto.Media) (*dto.Media, error)
PrepareForDownload ...
type ProjectImportServiceImpl ¶
ProjectImportServiceImpl ...
func (*ProjectImportServiceImpl) Find ¶
func (inst *ProjectImportServiceImpl) Find(ctx context.Context, o *vo.ProjectImport) (*vo.ProjectImport, error)
func (*ProjectImportServiceImpl) FindOrLocate ¶
func (inst *ProjectImportServiceImpl) FindOrLocate(ctx context.Context, o *vo.ProjectImport) (*vo.ProjectImport, error)
func (*ProjectImportServiceImpl) Locate ¶
func (inst *ProjectImportServiceImpl) Locate(ctx context.Context, o *vo.ProjectImport) (*vo.ProjectImport, error)
func (*ProjectImportServiceImpl) Save ¶
func (inst *ProjectImportServiceImpl) Save(ctx context.Context, o *vo.ProjectImport) (*vo.ProjectImport, error)
type ProjectServiceImpl ¶
type ProjectServiceImpl struct { markup.Component `id:"ProjectService"` UUIDGenService service.UUIDGenService `inject:"#UUIDGenService"` ProjectDAO dao.ProjectDAO `inject:"#ProjectDAO"` }
ProjectServiceImpl ...
func (*ProjectServiceImpl) FindByOwnerRepository ¶
func (inst *ProjectServiceImpl) FindByOwnerRepository(ctx context.Context, id dxo.LocalRepositoryID) ([]*dto.Project, error)
FindByOwnerRepository ...
type RemoteRepositoryServiceImpl ¶
RemoteRepositoryServiceImpl ...
func (*RemoteRepositoryServiceImpl) Find ¶
func (inst *RemoteRepositoryServiceImpl) Find(ctx context.Context, id dxo.RemoteRepositoryID) (*dto.RemoteRepository, error)
func (*RemoteRepositoryServiceImpl) FindByName ¶
func (inst *RemoteRepositoryServiceImpl) FindByName(ctx context.Context, name string) (*dto.RemoteRepository, error)
func (*RemoteRepositoryServiceImpl) Insert ¶
func (inst *RemoteRepositoryServiceImpl) Insert(ctx context.Context, o *dto.RemoteRepository) (*dto.RemoteRepository, error)
func (*RemoteRepositoryServiceImpl) ListAll ¶
func (inst *RemoteRepositoryServiceImpl) ListAll(ctx context.Context) ([]*dto.RemoteRepository, error)
func (*RemoteRepositoryServiceImpl) Remove ¶
func (inst *RemoteRepositoryServiceImpl) Remove(ctx context.Context, id dxo.RemoteRepositoryID) error
func (*RemoteRepositoryServiceImpl) Update ¶
func (inst *RemoteRepositoryServiceImpl) Update(ctx context.Context, id dxo.RemoteRepositoryID, o *dto.RemoteRepository) (*dto.RemoteRepository, error)
type RepositoryImportServiceImpl ¶
type RepositoryImportServiceImpl struct { markup.Component `id:"RepositoryImportService"` RepositoryService service.LocalRepositoryService `inject:"#LocalRepositoryService"` RepoFinder service.LocalRepositoryFinder `inject:"#LocalRepositoryFinder"` }
RepositoryImportServiceImpl ...
func (*RepositoryImportServiceImpl) Find ¶
func (inst *RepositoryImportServiceImpl) Find(ctx context.Context, o1 *vo.RepositoryImport) (*vo.RepositoryImport, error)
Find ...
func (*RepositoryImportServiceImpl) FindOrLocate ¶
func (inst *RepositoryImportServiceImpl) FindOrLocate(ctx context.Context, o1 *vo.RepositoryImport) (*vo.RepositoryImport, error)
FindOrLocate ...
func (*RepositoryImportServiceImpl) Locate ¶
func (inst *RepositoryImportServiceImpl) Locate(ctx context.Context, o1 *vo.RepositoryImport) (*vo.RepositoryImport, error)
Locate ...
func (*RepositoryImportServiceImpl) Save ¶
func (inst *RepositoryImportServiceImpl) Save(ctx context.Context, vo1 *vo.RepositoryImport) (*vo.RepositoryImport, error)
Save ...
type RunIntentServiceImpl ¶
type RunIntentServiceImpl struct { markup.Component `id:"IntentService"` GitLibAgent store.LibAgent `inject:"#git-lib-agent"` IntentFilterManager intents.FilterManager `inject:"#intent-filter-manager"` LocalRepositoryService service.LocalRepositoryService `inject:"#LocalRepositoryService"` ExecutableService service.ExecutableService `inject:"#ExecutableService"` IntentHandlerService service.IntentHandlerService `inject:"#IntentHandlerService"` }
RunIntentServiceImpl ...
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 ...
Source Files ¶
- AboutServiceImpl.go
- AppDataServiceImpl.go
- AppIconServiceImpl.go
- ExampleServiceImpl.go
- ExecutableImportServiceImpl.go
- ExecutableServiceImpl.go
- FileQueryServiceImpl.go
- IntentServiceImpl.go
- LocalRepositoryFinderImpl.go
- LocalRepositoryServiceImpl.go
- LocalRepositoryStateLoaderImpl.go
- MainRepositoryServiceImp.go
- MediaServiceImpl.go
- ProjectImportServiceImpl.go
- ProjectServiceImpl.go
- RemoteRepositoryServiceImp.go
- RepositoryImportServiceImpl.go
- RunIntentServiceImpl.go
- UUIDGenServiceImpl.go
- UserMainRepositoryServiceImp.go
- intent_handler.go