github.com/weaviate/weaviate@v1.24.6/modules/text2vec-contextionary/vectorizer/index_check.go (about) 1 // _ _ 2 // __ _____ __ ___ ___ __ _| |_ ___ 3 // \ \ /\ / / _ \/ _` \ \ / / |/ _` | __/ _ \ 4 // \ V V / __/ (_| |\ V /| | (_| | || __/ 5 // \_/\_/ \___|\__,_| \_/ |_|\__,_|\__\___| 6 // 7 // Copyright © 2016 - 2024 Weaviate B.V. All rights reserved. 8 // 9 // CONTACT: hello@weaviate.io 10 // 11 12 package vectorizer 13 14 import ( 15 "github.com/weaviate/weaviate/entities/models" 16 "github.com/weaviate/weaviate/entities/moduletools" 17 basesettings "github.com/weaviate/weaviate/usecases/modulecomponents/settings" 18 ) 19 20 type indexChecker struct { 21 basesettings.BaseClassSettings 22 cfg moduletools.ClassConfig 23 } 24 25 func NewIndexChecker(cfg moduletools.ClassConfig) *indexChecker { 26 return &indexChecker{cfg: cfg, BaseClassSettings: *basesettings.NewBaseClassSettings(cfg)} 27 } 28 29 func (ic *indexChecker) Validate(class *models.Class) error { 30 return ic.BaseClassSettings.Validate() 31 }