Documentation
¶
Index ¶
- Constants
- Variables
- func AllPropertiesDataAsMap() []map[string]interface{}
- func AllPropertiesDataWithCrossReferencesAsMap() []map[string]interface{}
- func AllPropertiesDataWithCrossReferencesWithNestedArrayObjectsAsMap() []map[string]interface{}
- func AllPropertiesDataWithNestedArrayObjectsAsMap() []map[string]interface{}
- func AllPropertiesDataWithNestedObjectsAsMap() []map[string]interface{}
- func AllPropertiesObjects(className string) []*models.Object
- func AllPropertiesObjectsWithData(className string, properties []map[string]interface{}) []*models.Object
- func AllPropertiesObjectsWithNested(className string) []*models.Object
- func AllPropertiesObjectsWithNestedArray(className string) []*models.Object
- func AllPropertiesSchemaCreate(t *testing.T, client *weaviate.Client, className string, withCrossRefs bool)
- func CleanUpWeaviate(t *testing.T, client *weaviate.Client)
- func CreateDataFood(t *testing.T, client *weaviate.Client)
- func CreateDataFoodForTenants(t *testing.T, client *weaviate.Client, tenantNames ...string)
- func CreateDataPizza(t *testing.T, client *weaviate.Client)
- func CreateDataPizzaDoenerForTenants(t *testing.T, client *weaviate.Client, tenantNames ...string)
- func CreateDataPizzaForTenants(t *testing.T, client *weaviate.Client, tenantNames ...string)
- func CreateDataPizzaFruttiDiMareForTenants(t *testing.T, client *weaviate.Client, tenantNames ...string)
- func CreateDataPizzaHawaiiForTenants(t *testing.T, client *weaviate.Client, tenantNames ...string)
- func CreateDataPizzaQuattroFormaggiForTenants(t *testing.T, client *weaviate.Client, tenantNames ...string)
- func CreateDataRisotto(t *testing.T, client *weaviate.Client)
- func CreateDataRisottoForTenants(t *testing.T, client *weaviate.Client, tenantNames ...string)
- func CreateDataSoup(t *testing.T, client *weaviate.Client)
- func CreateDataSoupForTenants(t *testing.T, client *weaviate.Client, tenantNames ...string)
- func CreateSchemaFood(t *testing.T, client *weaviate.Client)
- func CreateSchemaFoodForTenants(t *testing.T, client *weaviate.Client)
- func CreateSchemaPizza(t *testing.T, client *weaviate.Client)
- func CreateSchemaPizzaForTenants(t *testing.T, client *weaviate.Client)
- func CreateSchemaRisotto(t *testing.T, client *weaviate.Client)
- func CreateSchemaRisottoForTenants(t *testing.T, client *weaviate.Client)
- func CreateSchemaSoup(t *testing.T, client *weaviate.Client)
- func CreateSchemaSoupForTenants(t *testing.T, client *weaviate.Client)
- func CreateTenantsFood(t *testing.T, client *weaviate.Client, tenants ...models.Tenant)
- func CreateTenantsPizza(t *testing.T, client *weaviate.Client, tenants ...models.Tenant)
- func CreateTenantsRisotto(t *testing.T, client *weaviate.Client, tenants ...models.Tenant)
- func CreateTenantsSoup(t *testing.T, client *weaviate.Client, tenants ...models.Tenant)
- func CreateTestClient() *weaviate.Client
- func CreateTestDocumentAndPassageSchemaAndData(t *testing.T, client *weaviate.Client)
- func CreateTestSchemaAndData(t *testing.T, client *weaviate.Client, opts ...schemaOptions)
- func CreateTestSchemaAndDataDeprecated(t *testing.T, client *weaviate.Client)
- func CreateWeaviateTestSchemaDocumentPassage(t *testing.T, client *weaviate.Client)
- func CreateWeaviateTestSchemaFood(t *testing.T, client *weaviate.Client, opts ...schemaOptions)
- func CreateWeaviateTestSchemaFoodDeprecated(t *testing.T, client *weaviate.Client)
- func CreateWeaviateTestSchemaFoodWithReferenceProperty(t *testing.T, client *weaviate.Client)
- func CreateWeaviateTestSchemaFoodWithReferencePropertyDeprecated(t *testing.T, client *weaviate.Client)
- func CreateWeaviateTestSchemaWithVectorizorlessClass(t *testing.T, client *weaviate.Client)
- func CreateWeaviateTestSchemaWithVectorizorlessClassDeprecated(t *testing.T, client *weaviate.Client)
- func GetPortAndAuthPw() (int, string, bool)
- func ParseReferenceResponseToStruct(t *testing.T, reference interface{}) models.MultipleRef
- func WithReplication(cls *models.Class)
- type AllProperties
- type Tenants
Constants ¶
View Source
const ( PIZZA_QUATTRO_FORMAGGI_ID = "10523cdd-15a2-42f4-81fa-267fe92f7cd6" PIZZA_FRUTTI_DI_MARE_ID = "927dd3ac-e012-4093-8007-7799cc7e81e4" PIZZA_HAWAII_ID = "00000000-0000-0000-0000-000000000000" PIZZA_DOENER_ID = "5b6a08ba-1d46-43aa-89cc-8b070790c6f2" SOUP_CHICKENSOUP_ID = "8c156d37-81aa-4ce9-a811-621e2702b825" SOUP_BEAUTIFUL_ID = "27351361-2898-4d1a-aad7-1ca48253eb0b" RISOTTO_RISI_E_BISI_ID = "da751a25-f573-4715-a893-e607b2de0ba4" RISOTTO_ALLA_PILOTA_ID = "10c2ee44-7d58-42be-9d64-5766883ca8cb" RISOTTO_AL_NERO_DI_SEPPIA = "696bf381-7f98-40a4-bcad-841780e00e0e" )
View Source
const ( NoAuthPort = 8080 AzurePort = 8081 OktaCCPort = 8082 OktaUsersPort = 8083 WCSPort = 8085 WCSGRPCPort = 50056 NoWeaviatePort = 8888 )
View Source
const ( AllProperties_RefClass = "RefClass" AllProperties_RefClass2 = "RefClass2" AllProperties_RefID1 = "a0000000-0000-0000-0000-000000000001" AllProperties_RefID2 = "a0000000-0000-0000-0000-000000000002" AllProperties_RefID3 = "a0000000-0000-0000-0000-000000000003" AllProperties_hasRefClass = "hasRefClass" AllProperties_hasRefClass2 = "hasRefClass2" )
Variables ¶
View Source
var AllIds = []string{ PIZZA_QUATTRO_FORMAGGI_ID, PIZZA_FRUTTI_DI_MARE_ID, PIZZA_HAWAII_ID, PIZZA_DOENER_ID, SOUP_CHICKENSOUP_ID, SOUP_BEAUTIFUL_ID, RISOTTO_RISI_E_BISI_ID, RISOTTO_ALLA_PILOTA_ID, RISOTTO_AL_NERO_DI_SEPPIA, }
View Source
var IdsByClass = map[string][]string{ "Pizza": { PIZZA_QUATTRO_FORMAGGI_ID, PIZZA_FRUTTI_DI_MARE_ID, PIZZA_HAWAII_ID, PIZZA_DOENER_ID, }, "Soup": { SOUP_CHICKENSOUP_ID, SOUP_BEAUTIFUL_ID, }, "Risotto": { RISOTTO_RISI_E_BISI_ID, RISOTTO_ALLA_PILOTA_ID, RISOTTO_AL_NERO_DI_SEPPIA, }, }
Functions ¶
func AllPropertiesDataAsMap ¶
func AllPropertiesDataAsMap() []map[string]interface{}
func AllPropertiesDataWithCrossReferencesAsMap ¶
func AllPropertiesDataWithCrossReferencesAsMap() []map[string]interface{}
func AllPropertiesDataWithCrossReferencesWithNestedArrayObjectsAsMap ¶
func AllPropertiesDataWithCrossReferencesWithNestedArrayObjectsAsMap() []map[string]interface{}
func AllPropertiesDataWithNestedArrayObjectsAsMap ¶
func AllPropertiesDataWithNestedArrayObjectsAsMap() []map[string]interface{}
func AllPropertiesDataWithNestedObjectsAsMap ¶
func AllPropertiesDataWithNestedObjectsAsMap() []map[string]interface{}
func AllPropertiesObjects ¶
func CleanUpWeaviate ¶
CleanUpWeaviate removes the schema and thereby all data
func CreateTenantsFood ¶
func CreateTenantsPizza ¶
func CreateTenantsRisotto ¶
func CreateTenantsSoup ¶
func CreateTestClient ¶
CreateTestClient running on local host 8080
func CreateTestSchemaAndData ¶
CreateTestSchemaAndData with a few pizzas and soups
func CreateWeaviateTestSchemaFood ¶
CreateWeaviateTestSchemaFood creates a class for each semantic type (Pizza and Soup) and adds some primitive properties (name and description)
func GetPortAndAuthPw ¶
func ParseReferenceResponseToStruct ¶
func ParseReferenceResponseToStruct(t *testing.T, reference interface{}) models.MultipleRef
ParseReferenceResponseToStruct from the interface typed property schema returned by the client
func WithReplication ¶
Types ¶
type AllProperties ¶
type AllProperties struct {
ID1, ID2, ID3 string
IDs []string
Authors []string
AuthorsArray [][]string
Colors []string
ColorssArray [][]string
Numbers []float64
NumbersArray [][]float64
Ints []int64
IntsArray [][]int64
Uuids []string
UuidsArray [][]string
Dates []string
DatesArray [][]string
Bools []bool
BoolsArray [][]bool
}
func AllPropertiesData ¶
func AllPropertiesData() AllProperties
Click to show internal directories.
Click to hide internal directories.