service

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2025 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ComponentService

type ComponentService interface {
	GetComponentByPath(filePath string) (entities.ComponentDTO, error)
	FilterComponents(dto []entities.ComponentFilterDTO) error
	Undo() error
	Redo() error
	CanUndo() bool
	CanRedo() bool
	GetDeclaredComponents() ([]entities.DeclaredComponent, error)
}

type ComponentServiceImpl

type ComponentServiceImpl struct {
	// contains filtered or unexported fields
}

func (*ComponentServiceImpl) CanRedo

func (s *ComponentServiceImpl) CanRedo() bool

func (*ComponentServiceImpl) CanUndo

func (s *ComponentServiceImpl) CanUndo() bool

func (*ComponentServiceImpl) ClearAllFilters

func (s *ComponentServiceImpl) ClearAllFilters() error

func (*ComponentServiceImpl) FilterComponents

func (s *ComponentServiceImpl) FilterComponents(dto []entities.ComponentFilterDTO) error

func (*ComponentServiceImpl) GetComponentByPath

func (s *ComponentServiceImpl) GetComponentByPath(filePath string) (entities.ComponentDTO, error)

func (*ComponentServiceImpl) GetDeclaredComponents

func (s *ComponentServiceImpl) GetDeclaredComponents() ([]entities.DeclaredComponent, error)

func (*ComponentServiceImpl) GetInitialFilters

func (s *ComponentServiceImpl) GetInitialFilters() entities.InitialFilters

func (*ComponentServiceImpl) Redo

func (s *ComponentServiceImpl) Redo() error

func (*ComponentServiceImpl) Undo

func (s *ComponentServiceImpl) Undo() error

type FileService

type FileService interface {
	GetRemoteFile(path string) (entities.FileDTO, error)
	GetLocalFile(path string) (entities.FileDTO, error)
}

func NewFileService

func NewFileService(repo repository.FileRepository, componentRepo repository.ComponentRepository) FileService

type FileServiceImpl

type FileServiceImpl struct {
	// contains filtered or unexported fields
}

func (*FileServiceImpl) GetLocalFile

func (c *FileServiceImpl) GetLocalFile(path string) (entities.FileDTO, error)

func (*FileServiceImpl) GetRemoteFile

func (c *FileServiceImpl) GetRemoteFile(path string) (entities.FileDTO, error)

type KeyboardService

type KeyboardService interface {
	GetShortcuts() []entities.Shortcut
	GetGroupedShortcuts() map[entities.Group][]entities.Shortcut
}

func NewKeyboardServiceInMemoryImpl

func NewKeyboardServiceInMemoryImpl() KeyboardService

type KeyboardServiceInMemoryImpl

type KeyboardServiceInMemoryImpl struct {
}

func (*KeyboardServiceInMemoryImpl) GetGroupedShortcuts

func (k *KeyboardServiceInMemoryImpl) GetGroupedShortcuts() map[entities.Group][]entities.Shortcut

func (*KeyboardServiceInMemoryImpl) GetShortcuts

func (k *KeyboardServiceInMemoryImpl) GetShortcuts() []entities.Shortcut

type LicenseService

type LicenseService interface {
	GetAll() ([]entities.License, error)
}

func NewLicenseServiceImpl

func NewLicenseServiceImpl(repo repository.LicenseRepository) LicenseService

type LicenseServiceImpl

type LicenseServiceImpl struct {
	// contains filtered or unexported fields
}

func (*LicenseServiceImpl) GetAll

func (s *LicenseServiceImpl) GetAll() ([]entities.License, error)

type ResultService

type ResultService interface {
	GetAll(dto *entities.RequestResultDTO) ([]entities.ResultDTO, error)
	SetContext(ctx context.Context)
}

type ResultServiceImpl

type ResultServiceImpl struct {
	// contains filtered or unexported fields
}

func (*ResultServiceImpl) GetAll

func (*ResultServiceImpl) SetContext

func (s *ResultServiceImpl) SetContext(ctx context.Context)

type ScanService

type ScanService interface {
	CheckDependencies() error
	GetDefaultScanArgs() []string
	Scan(args []string) error
	ScanStream(args []string) error
}

type ScanServicePythonImpl

type ScanServicePythonImpl struct {
	// contains filtered or unexported fields
}

func NewScanServicePythonImpl

func NewScanServicePythonImpl() *ScanServicePythonImpl

func (*ScanServicePythonImpl) CheckDependencies

func (s *ScanServicePythonImpl) CheckDependencies() error

func (*ScanServicePythonImpl) GetDefaultScanArgs

func (s *ScanServicePythonImpl) GetDefaultScanArgs() []string

func (*ScanServicePythonImpl) GetScanArgs added in v0.6.0

func (s *ScanServicePythonImpl) GetScanArgs() []entities.ScanArgDef

func (*ScanServicePythonImpl) GetSensitiveDefaultScanArgs

func (s *ScanServicePythonImpl) GetSensitiveDefaultScanArgs() []string

func (*ScanServicePythonImpl) Scan

func (s *ScanServicePythonImpl) Scan(args []string) error

func (*ScanServicePythonImpl) ScanStream

func (s *ScanServicePythonImpl) ScanStream(args []string) error

func (*ScanServicePythonImpl) SetContext

func (s *ScanServicePythonImpl) SetContext(ctx context.Context)

type ScanossSettingsService

type ScanossSettingsService interface {
	Save() error
	HasUnsavedChanges() (bool, error)
}

type ScanossSettingsServiceImp

type ScanossSettingsServiceImp struct {
	// contains filtered or unexported fields
}

func (*ScanossSettingsServiceImp) GetSettings

func (*ScanossSettingsServiceImp) HasUnsavedChanges

func (s *ScanossSettingsServiceImp) HasUnsavedChanges() (bool, error)

func (*ScanossSettingsServiceImp) Save

func (s *ScanossSettingsServiceImp) Save() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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