implservice

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2023 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

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

定义 app-data 文件名

Variables

This section is empty.

Functions

This section is empty.

Types

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 ...

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 ExecutableImportServiceImpl

type ExecutableImportServiceImpl struct {
	markup.Component `id:"ExecutableImportService"`

	ExecutableService service.ExecutableService `inject:"#ExecutableService"`
}

ExecutableImportServiceImpl ...

func (*ExecutableImportServiceImpl) Locate

Locate ...

func (*ExecutableImportServiceImpl) Save

Save ...

type ExecutableServiceImpl

type ExecutableServiceImpl struct {
	markup.Component `id:"ExecutableService"`

	ExecutableDAO dao.ExecutableDAO      `inject:"#ExecutableDAO"`
	IconService   service.AppIconService `inject:"#AppIconService"`
}

ExecutableServiceImpl ...

func (*ExecutableServiceImpl) Find

Find ...

func (*ExecutableServiceImpl) FindByPath

func (inst *ExecutableServiceImpl) FindByPath(ctx context.Context, path string) (*dto.Executable, error)

FindByPath ...

func (*ExecutableServiceImpl) Insert

Insert ...

func (*ExecutableServiceImpl) ListAll

func (inst *ExecutableServiceImpl) ListAll(ctx context.Context) ([]*dto.Executable, error)

ListAll ...

func (*ExecutableServiceImpl) Remove

Remove ...

func (*ExecutableServiceImpl) Update

Update ...

type IntentHandlerImpl

type IntentHandlerImpl struct {
	markup.Component `id:"IntentHandlerService"`
}

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 (*IntentTemplateServiceImpl) Insert

func (*IntentTemplateServiceImpl) ListAll

func (*IntentTemplateServiceImpl) Remove

func (*IntentTemplateServiceImpl) Update

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"`

	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

Find ...

func (*LocalRepositoryServiceImpl) FindByName

func (inst *LocalRepositoryServiceImpl) FindByName(ctx context.Context, name string) (*dto.LocalRepository, error)

FindByName ...

func (*LocalRepositoryServiceImpl) Insert

Insert ...

func (*LocalRepositoryServiceImpl) ListAll

ListAll ...

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 MediaServiceImpl

type MediaServiceImpl struct {
	markup.Component `id:"MediaService"`

	MediaDAO           dao.MediaDAO                  `inject:"#MediaDAO"`
	SysMainRepoService service.MainRepositoryService `inject:"#MainRepositoryService"`
}

MediaServiceImpl ...

func (*MediaServiceImpl) Find

func (inst *MediaServiceImpl) Find(ctx context.Context, id dxo.MediaID) (*dto.Media, error)

Find ...

func (*MediaServiceImpl) FindByPath

func (inst *MediaServiceImpl) FindByPath(ctx context.Context, path string) (*dto.Media, error)

FindByPath ...

func (*MediaServiceImpl) Insert

func (inst *MediaServiceImpl) Insert(ctx context.Context, o *dto.Media) (*dto.Media, error)

Insert ...

func (*MediaServiceImpl) ListAll

func (inst *MediaServiceImpl) ListAll(ctx context.Context) ([]*dto.Media, error)

ListAll ...

func (*MediaServiceImpl) PrepareForDownload

func (inst *MediaServiceImpl) PrepareForDownload(ctx context.Context, me *dto.Media) (*dto.Media, error)

PrepareForDownload ...

func (*MediaServiceImpl) Remove

func (inst *MediaServiceImpl) Remove(ctx context.Context, id dxo.MediaID) error

Remove ...

func (*MediaServiceImpl) Update

func (inst *MediaServiceImpl) Update(ctx context.Context, id dxo.MediaID, o *dto.Media) (*dto.Media, error)

Update ...

type ProjectImportServiceImpl

type ProjectImportServiceImpl struct {
	markup.Component `id:"ProjectImportService"`
}

ProjectImportServiceImpl ...

func (*ProjectImportServiceImpl) Find

func (*ProjectImportServiceImpl) FindOrLocate

func (*ProjectImportServiceImpl) Locate

func (*ProjectImportServiceImpl) Save

type ProjectServiceImpl

type ProjectServiceImpl struct {
	markup.Component `id:"ProjectService"`

	UUIDGenService service.UUIDGenService `inject:"#UUIDGenService"`
	ProjectDAO     dao.ProjectDAO         `inject:"#ProjectDAO"`
}

ProjectServiceImpl ...

func (*ProjectServiceImpl) Find

func (inst *ProjectServiceImpl) Find(ctx context.Context, id dxo.ProjectID) (*dto.Project, error)

Find ...

func (*ProjectServiceImpl) FindByOwnerRepository

func (inst *ProjectServiceImpl) FindByOwnerRepository(ctx context.Context, id dxo.LocalRepositoryID) ([]*dto.Project, error)

FindByOwnerRepository ...

func (*ProjectServiceImpl) Insert

func (inst *ProjectServiceImpl) Insert(ctx context.Context, o *dto.Project) (*dto.Project, error)

Insert ...

func (*ProjectServiceImpl) ListAll

func (inst *ProjectServiceImpl) ListAll(ctx context.Context) ([]*dto.Project, error)

ListAll ...

func (*ProjectServiceImpl) Remove

func (inst *ProjectServiceImpl) Remove(ctx context.Context, id dxo.ProjectID) error

Remove ...

func (*ProjectServiceImpl) Update

func (inst *ProjectServiceImpl) Update(ctx context.Context, id dxo.ProjectID, o *dto.Project) (*dto.Project, error)

Update ...

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 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 ...

func (*RunIntentServiceImpl) Run

func (inst *RunIntentServiceImpl) Run(ctx context.Context, o *dto.Intent) (*dto.Intent, error)

Run ...

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