Versions in this module Expand all Collapse all v0 v0.1.2 Jul 25, 2021 v0.1.1 Jul 25, 2021 Changes in this version + type AspectService interface + Count func() (int64, error) + Create func(int, int) (*model.Aspect, error) + Find func(int, int) (*model.Aspect, error) + FindIn func([]int64) ([]*model.Aspect, error) + FindOrCreate func(int, int) (*model.Aspect, error) + Get func(int64) (*model.Aspect, error) + Insert func(*model.Aspect) error + type CoverPartialService interface + BulkInsert func([]*model.CoverPartial) (int64, error) + Count func(*model.Cover) (int64, error) + Delete func(*model.CoverPartial) error + FindAll func(int64, string) ([]*model.CoverPartial, error) + Get func(int64) (*model.CoverPartial, error) + Insert func(*model.CoverPartial) error + Update func(*model.CoverPartial) error + type CoverService interface + Delete func(*model.Cover) error + FindAll func(string) ([]*model.Cover, error) + Get func(int64) (*model.Cover, error) + GetOneBy func(string, ...interface{}) (*model.Cover, error) + Insert func(*model.Cover) error + Update func(*model.Cover) error + type GidxPartialService interface + BulkInsert func([]*model.GidxPartial) (int64, error) + Count func() (int64, error) + CountBy func(string, ...interface{}) (int64, error) + CountForMacro func(*model.Macro) (int64, error) + CountMissing func([]*model.Aspect) (int64, error) + Create func(*model.Gidx, *model.Aspect) (*model.GidxPartial, error) + Delete func(*model.GidxPartial) error + ExistsBy func(string, ...interface{}) (bool, error) + Find func(*model.Gidx, *model.Aspect) (*model.GidxPartial, error) + FindMissing func(*model.Aspect, string, int, int) ([]*model.Gidx, error) + FindOrCreate func(*model.Gidx, *model.Aspect) (*model.GidxPartial, error) + Get func(int64) (*model.GidxPartial, error) + GetOneBy func(string, interface{}) (*model.GidxPartial, error) + Insert func(*model.GidxPartial) error + Update func(*model.GidxPartial) error + type GidxService interface + Count func() (int64, error) + CountBy func(string, interface{}) (int64, error) + Delete func(*model.Gidx) (int64, error) + ExistsBy func(string, interface{}) (bool, error) + FindAll func(string, int, int) ([]*model.Gidx, error) + Get func(int64) (*model.Gidx, error) + GetOneBy func(string, interface{}) (*model.Gidx, error) + Insert func(*model.Gidx) error + Update func(*model.Gidx) (int64, error) + type MacroPartialService interface + AspectIds func(int64) ([]int64, error) + Count func(*model.Macro) (int64, error) + CountMissing func(*model.Macro) (int64, error) + Create func(*model.Macro, *model.CoverPartial) (*model.MacroPartial, error) + Delete func(*model.MacroPartial) error + ExistsBy func(string, interface{}) (bool, error) + Find func(*model.Macro, *model.CoverPartial) (*model.MacroPartial, error) + FindAll func(string, int, int, string, ...interface{}) ([]*model.MacroPartial, error) + FindMissing func(*model.Macro, string, int, int) ([]*model.CoverPartial, error) + FindOrCreate func(*model.Macro, *model.CoverPartial) (*model.MacroPartial, error) + Get func(int64) (*model.MacroPartial, error) + GetOneBy func(string, interface{}) (*model.MacroPartial, error) + Insert func(*model.MacroPartial) error + Update func(*model.MacroPartial) error + type MacroService interface + Delete func(*model.Macro) error + ExistsBy func(string, ...interface{}) (bool, error) + FindAll func(string) ([]*model.Macro, error) + Get func(int64) (*model.Macro, error) + GetOneBy func(string, ...interface{}) (*model.Macro, error) + Insert func(*model.Macro) error + Update func(*model.Macro) error + type MosaicPartialService interface + Count func(*model.Mosaic) (int64, error) + CountMissing func(*model.Mosaic) (int64, error) + FindAllPartialViews func(*model.Mosaic, string, int, int) ([]*model.MosaicPartialView, error) + FindRepeats func(*model.Mosaic, int) ([]int64, error) + Get func(int64) (*model.MosaicPartial, error) + GetMissing func(*model.Mosaic) (*model.MacroPartial, error) + GetRandomMissing func(*model.Mosaic) (*model.MacroPartial, error) + Insert func(*model.MosaicPartial) error + type MosaicService interface + ExistsBy func(string, ...interface{}) (bool, error) + FindAll func(string) ([]*model.Mosaic, error) + Get func(int64) (*model.Mosaic, error) + GetOneBy func(string, ...interface{}) (*model.Mosaic, error) + Insert func(*model.Mosaic) error + Update func(*model.Mosaic) (int64, error) + type PartialComparisonService interface + BulkInsert func([]*model.PartialComparison) (int64, error) + Count func() (int64, error) + CountBy func(string, ...interface{}) (int64, error) + CountMissing func(macro *model.Macro) (int64, error) + Create func(*model.MacroPartial, *model.GidxPartial) (*model.PartialComparison, error) + CreateFromView func(*model.MacroGidxView) (*model.PartialComparison, error) + Delete func(*model.PartialComparison) error + DeleteBy func(string, ...interface{}) error + DeleteFrom func(*model.Macro) error + ExistsBy func(string, ...interface{}) (bool, error) + Find func(*model.MacroPartial, *model.GidxPartial) (*model.PartialComparison, error) + FindAll func(string, int, int, string, ...interface{}) ([]*model.PartialComparison, error) + FindMissing func(*model.Macro, int) ([]*model.MacroGidxView, error) + FindOrCreate func(*model.MacroPartial, *model.GidxPartial) (*model.PartialComparison, error) + Get func(int64) (*model.PartialComparison, error) + GetBestAvailable func(*model.Mosaic) (*model.PartialComparison, error) + GetBestAvailableMax func(*model.Mosaic, int) (*model.PartialComparison, error) + GetClosest func(*model.MacroPartial) (int64, error) + GetClosestMax func(*model.MacroPartial, *model.Mosaic, int) (int64, error) + GetOneBy func(string, ...interface{}) (*model.PartialComparison, error) + Insert func(*model.PartialComparison) error + Update func(*model.PartialComparison) error + type ProjectService interface + ExistsBy func(string, ...interface{}) (bool, error) + FindAll func(string) ([]*model.Project, error) + Get func(int64) (*model.Project, error) + GetOneBy func(string, ...interface{}) (*model.Project, error) + Insert func(*model.Project) error + Update func(*model.Project) (int64, error) + type QuadDistService interface + Get func(int64) (*model.QuadDist, error) + GetWorst func(*model.Macro, int, int) (*model.CoverPartialQuadView, error) + Insert func(*model.QuadDist) error + type Service interface + Close func() error + Register func() error + type ServiceFactory interface + AspectService func() (AspectService, error) + Close func() error + CoverPartialService func() (CoverPartialService, error) + CoverService func() (CoverService, error) + GidxPartialService func() (GidxPartialService, error) + GidxService func() (GidxService, error) + MacroPartialService func() (MacroPartialService, error) + MacroService func() (MacroService, error) + MosaicPartialService func() (MosaicPartialService, error) + MosaicService func() (MosaicService, error) + MustAspectService func() AspectService + MustCoverPartialService func() CoverPartialService + MustCoverService func() CoverService + MustGidxPartialService func() GidxPartialService + MustGidxService func() GidxService + MustMacroPartialService func() MacroPartialService + MustMacroService func() MacroService + MustMosaicPartialService func() MosaicPartialService + MustMosaicService func() MosaicService + MustPartialComparisonService func() PartialComparisonService + MustProjectService func() ProjectService + MustQuadDistService func() QuadDistService + PartialComparisonService func() (PartialComparisonService, error) + ProjectService func() (ProjectService, error) + QuadDistService func() (QuadDistService, error) + func NewServiceFactory(dsn string) (ServiceFactory, error) + type ServiceName uint8 + const AspectServiceName + const CoverPartialServiceName + const CoverServiceName + const GidxPartialServiceName + const GidxServiceName + const MacroPartialServiceName + const MacroServiceName + const MosaicPartialServiceName + const MosaicServiceName + const PartialComparisonServiceName + const ProjectServiceName + const QuadDistServiceName