Documentation ¶
Index ¶
- Constants
- type AboutServiceImpl
- type AppDataServiceImpl
- func (inst *AppDataServiceImpl) GetAppDataDirectory() string
- func (inst *AppDataServiceImpl) GetBackupDirectory() string
- func (inst *AppDataServiceImpl) GetMainRepositoryPath() string
- func (inst *AppDataServiceImpl) GetSQLiteDBFile() string
- func (inst *AppDataServiceImpl) Ready() bool
- func (inst *AppDataServiceImpl) Setup() error
- 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 FileQueryServiceImpl
- type FileSystemServiceImpl
- 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, opt *service.LocalRepositoryOptions) (*dto.LocalRepository, error)
- func (inst *LocalRepositoryServiceImpl) Insert(ctx context.Context, o1 *dto.LocalRepository) (*dto.LocalRepository, error)
- func (inst *LocalRepositoryServiceImpl) ListAll(ctx context.Context, opt *service.LocalRepositoryOptions) ([]*dto.LocalRepository, error)
- func (inst *LocalRepositoryServiceImpl) ListByIds(ctx context.Context, ids []dxo.LocalRepositoryID, ...) ([]*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 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 UUIDGenServiceImpl
Constants ¶
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 ...
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 ...
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 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 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 ...
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"` 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 ¶
func (inst *LocalRepositoryServiceImpl) Find(ctx context.Context, id dxo.LocalRepositoryID, opt *service.LocalRepositoryOptions) (*dto.LocalRepository, error)
Find ...
func (*LocalRepositoryServiceImpl) FindByName ¶
func (inst *LocalRepositoryServiceImpl) FindByName(ctx context.Context, name string, opt *service.LocalRepositoryOptions) (*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, opt *service.LocalRepositoryOptions) ([]*dto.LocalRepository, error)
ListAll ...
func (*LocalRepositoryServiceImpl) ListByIds ¶ added in v0.0.12
func (inst *LocalRepositoryServiceImpl) ListByIds(ctx context.Context, ids []dxo.LocalRepositoryID, opt *service.LocalRepositoryOptions) ([]*dto.LocalRepository, error)
ListByIds ...
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 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 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
- FileQueryServiceImpl.go
- FileSystemServiceImpl.go
- LocalRepositoryFinderImpl.go
- LocalRepositoryServiceImpl.go
- LocalRepositoryStateLoaderImpl.go
- MainRepositoryServiceImp.go
- RemoteRepositoryServiceImp.go
- RepositoryImportServiceImpl.go
- UUIDGenServiceImpl.go
- UserMainRepositoryServiceImp.go