dao

package
v0.0.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExampleDAO

type ExampleDAO interface {
	Find(id dxo.ExampleID) (*entity.Example, error)

	ListAll() ([]*entity.Example, error)

	Insert(o *entity.Example) (*entity.Example, error)

	Update(id dxo.ExampleID, o *entity.Example) (*entity.Example, error)

	Remove(id dxo.ExampleID) error
}

ExampleDAO ...

type ExecutableDAO

type ExecutableDAO interface {
	Find(id dxo.ExecutableID) (*entity.Executable, error)
	FindByPath(path string) (*entity.Executable, error)

	ListAll() ([]*entity.Executable, error)

	Insert(o *entity.Executable) (*entity.Executable, error)
	Update(id dxo.ExecutableID, o *entity.Executable) (*entity.Executable, error)
	Remove(id dxo.ExecutableID) error
}

type IntentTemplateDAO

type IntentTemplateDAO interface {
	Find(id dxo.IntentTemplateID) (*entity.IntentTemplate, error)

	ListAll() ([]*entity.IntentTemplate, error)

	Insert(o *entity.IntentTemplate) (*entity.IntentTemplate, error)

	Update(id dxo.IntentTemplateID, o *entity.IntentTemplate) (*entity.IntentTemplate, error)

	Remove(id dxo.IntentTemplateID) error
}

IntentTemplateDAO ...

type LocalRepositoryDAO

type LocalRepositoryDAO interface {
	Find(id dxo.LocalRepositoryID) (*entity.LocalRepository, error)
	FindByName(name string) (*entity.LocalRepository, error)
	FindByUUID(uuid dxo.UUID) (*entity.LocalRepository, error)

	FindByPath(path string) (*entity.LocalRepository, error)
	FindByDotGit(path string) (*entity.LocalRepository, error)
	FindByWorkingDir(path string) (*entity.LocalRepository, error)

	ListAll() ([]*entity.LocalRepository, error)

	Insert(o *entity.LocalRepository) (*entity.LocalRepository, error)
	Update(id dxo.LocalRepositoryID, o *entity.LocalRepository) (*entity.LocalRepository, error)
	Remove(id dxo.LocalRepositoryID) error
}

LocalRepositoryDAO ...

type MediaDAO

type MediaDAO interface {
	Find(id dxo.MediaID) (*entity.Media, error)

	FindByPath(path string) (*entity.Media, error)

	ListAll() ([]*entity.Media, error)

	Insert(o *entity.Media) (*entity.Media, error)

	Update(id dxo.MediaID, o *entity.Media) (*entity.Media, error)

	Remove(id dxo.MediaID) error
}

MediaDAO ...

type ProjectDAO

type ProjectDAO interface {
	Find(id dxo.ProjectID) (*entity.Project, error)
	FindByOwnerRepository(id dxo.LocalRepositoryID) ([]*entity.Project, error)

	ListAll() ([]*entity.Project, error)

	Insert(o *entity.Project) (*entity.Project, error)
	Update(id dxo.ProjectID, o *entity.Project) (*entity.Project, error)
	Remove(id dxo.ProjectID) error
}

ProjectDAO ...

type RemoteRepositoryDAO

RemoteRepositoryDAO ...

type SystemConfig

type SystemConfig interface {
	Get(name string) (*entity.SystemConfig, error)
	Save(name string, cfg *entity.SystemConfig) error

	GetProperties(name string) (collection.Properties, error)
	SaveProperties(name string, cfg collection.Properties) error
}

type UserConfig

type UserConfig interface {
	Get(name string) (*entity.UserConfig, error)
	Save(name string, cfg *entity.UserConfig) error

	GetProperties(name string) (collection.Properties, error)
	SaveProperties(name string, cfg collection.Properties) error
}

Jump to

Keyboard shortcuts

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