(modules []modulecapabilities.Module)
| 82 | } |
| 83 | |
| 84 | func (m *MorphModule) InitExtension(modules []modulecapabilities.Module) error { |
| 85 | for _, module := range modules { |
| 86 | if module.Name() == m.Name() { |
| 87 | continue |
| 88 | } |
| 89 | if arg, ok := module.(modulecapabilities.TextTransformers); ok { |
| 90 | if arg != nil && arg.TextTransformers() != nil { |
| 91 | m.nearTextTransformer = arg.TextTransformers()["nearText"] |
| 92 | } |
| 93 | } |
| 94 | } |
| 95 | |
| 96 | if err := m.initNearText(); err != nil { |
| 97 | return errors.Wrap(err, "init graphql provider") |
| 98 | } |
| 99 | return nil |
| 100 | } |
| 101 | |
| 102 | func (m *MorphModule) initVectorizer(ctx context.Context, timeout time.Duration, |
| 103 | logger logrus.FieldLogger, |
nothing calls this directly
no test coverage detected