| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
|
|
| package modulecapabilities |
|
|
| import ( |
| "context" |
|
|
| "github.com/weaviate/weaviate/entities/dto" |
| "github.com/weaviate/weaviate/entities/models" |
|
|
| "github.com/tailor-inc/graphql" |
| "github.com/tailor-inc/graphql/language/ast" |
| "github.com/weaviate/weaviate/entities/moduletools" |
| "github.com/weaviate/weaviate/entities/search" |
| ) |
|
|
| |
| type GraphQLFieldFn = func(classname string) *graphql.Field |
|
|
| |
| type ExtractAdditionalFn = func(param []*ast.Argument, class *models.Class) interface{} |
|
|
| |
| |
| type AdditionalPropertyWithSearchVector[T dto.Embedding] interface { |
| SetSearchVector(vector T) |
| } |
|
|
| |
| |
| type AdditionalPropertyFn = func(ctx context.Context, |
| in []search.Result, params interface{}, limit *int, |
| argumentModuleParams map[string]interface{}, cfg moduletools.ClassConfig) ([]search.Result, error) |
|
|
| |
| |
| type AdditionalSearch struct { |
| ObjectGet AdditionalPropertyFn |
| ObjectList AdditionalPropertyFn |
| ExploreGet AdditionalPropertyFn |
| ExploreList AdditionalPropertyFn |
| } |
|
|
| |
| |
| type AdditionalProperty struct { |
| RestNames []string |
| DefaultValue interface{} |
| GraphQLNames []string |
| GraphQLFieldFunction GraphQLFieldFn |
| GraphQLExtractFunction ExtractAdditionalFn |
| SearchFunctions AdditionalSearch |
| } |
|
|
| |
| |
| type AdditionalProperties interface { |
| AdditionalProperties() map[string]AdditionalProperty |
| } |
|
|