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 ¶
func NormalizeWeights ¶ added in v1.25.0
func SortStringKeys ¶ added in v1.25.0
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
Click to show internal directories.
Click to hide internal directories.