Documentation ¶
Overview ¶
moduletools contains helpers that are passed to modules as part of their capability methods
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClassConfig ¶
type ClassConfig interface { TargetVector() string Tenant() string Class() map[string]interface{} ClassByModuleName(moduleName string) map[string]interface{} Property(propName string) map[string]interface{} }
ClassConfig is a helper type which is passed to the module to read it's per-class config. This is - among other places - used when vectorizing and when validation schema config
type InitParams ¶
type InitParams struct {
// contains filtered or unexported fields
}
func (*InitParams) GetAppState ¶
func (p *InitParams) GetAppState() interface{}
func (*InitParams) GetConfig ¶ added in v1.21.4
func (p *InitParams) GetConfig() config.Config
func (*InitParams) GetLogger ¶
func (p *InitParams) GetLogger() logrus.FieldLogger
func (*InitParams) GetStorageProvider ¶
func (p *InitParams) GetStorageProvider() StorageProvider
type ModuleInitParams ¶
type ModuleInitParams interface { GetStorageProvider() StorageProvider GetAppState() interface{} GetLogger() logrus.FieldLogger GetConfig() config.Config }
func NewInitParams ¶
func NewInitParams(storageProvider StorageProvider, appState interface{}, config config.Config, logger logrus.FieldLogger, ) ModuleInitParams
type PropsComparatorFactory ¶ added in v1.24.0
type PropsComparatorFactory func() (VectorizablePropsComparator, error)
type StorageProvider ¶
type VectorizablePropsComparator ¶ added in v1.24.0
type VectorizablePropsComparator interface { PropsIterator() VectorizablePropsIterator IsChanged(propName string) bool PrevVector() []float32 PrevVectorForName(targetVector string) []float32 }
func NewVectorizablePropsComparator ¶ added in v1.24.0
func NewVectorizablePropsComparator(propsSchema []*models.Property, nextProps, prevProps models.PropertySchema, prevVector []float32, prevVectors models.Vectors, ) VectorizablePropsComparator
func NewVectorizablePropsComparatorDummy ¶ added in v1.24.0
func NewVectorizablePropsComparatorDummy(propsSchema []*models.Property, nextProps models.PropertySchema, ) VectorizablePropsComparator
type VectorizablePropsIterator ¶ added in v1.24.0
Click to show internal directories.
Click to hide internal directories.