Documentation
¶
Index ¶
- Constants
- type BaseClassSettings
- func (s *BaseClassSettings) GetNumber(in interface{}) (float32, error)
- func (s *BaseClassSettings) GetPropertyAsBool(name string, defaultValue bool) bool
- func (s *BaseClassSettings) GetPropertyAsInt64(name string, defaultValue *int64) *int64
- func (s *BaseClassSettings) GetPropertyAsString(name, defaultValue string) string
- func (s *BaseClassSettings) Properties() []string
- func (s *BaseClassSettings) PropertyIndexed(propName string) bool
- func (s *BaseClassSettings) Validate() error
- func (s *BaseClassSettings) VectorizeClassName() bool
- func (s *BaseClassSettings) VectorizePropertyName(propName string) bool
- type PropertyValuesHelper
Constants ¶
View Source
const ( DefaultPropertyIndexed = true DefaultVectorizeClassName = true DefaultVectorizePropertyName = false )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseClassSettings ¶
type BaseClassSettings struct {
// contains filtered or unexported fields
}
func NewBaseClassSettings ¶
func NewBaseClassSettings(cfg moduletools.ClassConfig) *BaseClassSettings
func (*BaseClassSettings) GetNumber ¶ added in v1.24.5
func (s *BaseClassSettings) GetNumber(in interface{}) (float32, error)
func (*BaseClassSettings) GetPropertyAsBool ¶ added in v1.24.5
func (s *BaseClassSettings) GetPropertyAsBool(name string, defaultValue bool) bool
func (*BaseClassSettings) GetPropertyAsInt64 ¶ added in v1.24.5
func (s *BaseClassSettings) GetPropertyAsInt64(name string, defaultValue *int64) *int64
func (*BaseClassSettings) GetPropertyAsString ¶ added in v1.24.5
func (s *BaseClassSettings) GetPropertyAsString(name, defaultValue string) string
func (*BaseClassSettings) Properties ¶
func (s *BaseClassSettings) Properties() []string
func (*BaseClassSettings) PropertyIndexed ¶
func (s *BaseClassSettings) PropertyIndexed(propName string) bool
func (*BaseClassSettings) Validate ¶
func (s *BaseClassSettings) Validate() error
func (*BaseClassSettings) VectorizeClassName ¶
func (s *BaseClassSettings) VectorizeClassName() bool
func (*BaseClassSettings) VectorizePropertyName ¶
func (s *BaseClassSettings) VectorizePropertyName(propName string) bool
type PropertyValuesHelper ¶ added in v1.24.5
type PropertyValuesHelper interface { GetPropertyAsInt(cfg moduletools.ClassConfig, name string, defaultValue *int) *int GetPropertyAsIntWithNotExists(cfg moduletools.ClassConfig, name string, defaultValue, notExistsValue *int) *int GetPropertyAsInt64(cfg moduletools.ClassConfig, name string, defaultValue *int64) *int64 GetPropertyAsInt64WithNotExists(cfg moduletools.ClassConfig, name string, defaultValue, notExistsValue *int64) *int64 GetPropertyAsFloat64(cfg moduletools.ClassConfig, name string, defaultValue *float64) *float64 GetPropertyAsFloat64WithNotExists(cfg moduletools.ClassConfig, name string, defaultValue, notExistsValue *float64) *float64 GetPropertyAsString(cfg moduletools.ClassConfig, name, defaultValue string) string GetPropertyAsStringWithNotExists(cfg moduletools.ClassConfig, name, defaultValue, notExistsValue string) string GetPropertyAsBool(cfg moduletools.ClassConfig, name string, defaultValue bool) bool GetPropertyAsBoolWithNotExists(cfg moduletools.ClassConfig, name string, defaultValue, notExistsValue bool) bool GetNumber(in interface{}) (float32, error) }
func NewPropertyValuesHelper ¶ added in v1.24.5
func NewPropertyValuesHelper(moduleName string) PropertyValuesHelper
Click to show internal directories.
Click to hide internal directories.