v1

package
v1.24.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 19, 2024 License: BSD-3-Clause Imports: 41 Imported by: 0

Documentation

Index

Constants

View Source
const BEACON_START = "weaviate://localhost/"

Variables

This section is empty.

Functions

func NewBlobValue added in v1.23.1

func NewBlobValue(v string) *pb.Value

NewBlobValue constructs a new blob Value.

func NewBoolValue added in v1.23.0

func NewBoolValue(v bool) *pb.Value

NewBoolValue constructs a new boolean Value.

func NewDateValue added in v1.23.0

func NewDateValue(v string) *pb.Value

NewDateValue constructs a new string Value.

func NewGeoValue added in v1.23.0

func NewGeoValue(v *models.GeoCoordinates) *pb.Value

NewGeoValue constructs a new geo Value.

func NewIntValue added in v1.23.0

func NewIntValue(v int64) *pb.Value

NewIntValue constructs a new number Value.

func NewListValue added in v1.23.0

func NewListValue(v *pb.ListValue) *pb.Value

NewListValue constructs a new list Value.

func NewNestedValue added in v1.23.0

func NewNestedValue[P schema.PropertyInterface](v interface{}, dt schema.DataType, parent P, prop search.SelectProperty) (*pb.Value, error)

func NewNilValue added in v1.24.0

func NewNilValue() *pb.Value

NewNilValue constructs a new nil Value.

func NewNumberValue added in v1.23.0

func NewNumberValue(v float64) *pb.Value

NewNumberValue constructs a new number Value.

func NewObject added in v1.23.0

func NewObject[P schema.PropertyInterface](v map[string]interface{}, parent P, selectProp search.SelectProperty) (*pb.Properties, error)

NewStruct constructs a Struct from a general-purpose Go map. The map keys must be valid UTF-8. The map values are converted using NewValue.

func NewObjectList added in v1.23.0

func NewObjectList[P schema.PropertyInterface](v []interface{}, parent P, selectProp search.SelectProperty) (*pb.ListValue, error)

NewList constructs a ListValue from a general-purpose Go slice. The slice elements are converted using NewValue.

func NewObjectValue added in v1.23.0

func NewObjectValue(v *pb.Properties) *pb.Value

NewObjectValue constructs a new struct Value.

func NewPhoneNumberValue added in v1.23.3

func NewPhoneNumberValue(v *models.PhoneNumber) *pb.Value

NewPhoneNumberValue constructs a new phone number Value.

func NewPrimitiveList added in v1.23.0

func NewPrimitiveList[T bool | float64 | string](v []T, dt schema.DataType) (*pb.ListValue, error)

NewList constructs a ListValue from a general-purpose Go slice. The slice elements are converted using NewValue.

func NewPrimitiveValue added in v1.23.0

func NewPrimitiveValue(v interface{}, dt schema.DataType) (*pb.Value, error)

func NewStringValue added in v1.23.0

func NewStringValue(v string) *pb.Value

NewStringValue constructs a new string Value.

func NewUuidValue added in v1.23.0

func NewUuidValue(v string) *pb.Value

NewUuidValue constructs a new string Value.

Types

type NestedProperty

type NestedProperty struct {
	*models.NestedProperty
}

func (*NestedProperty) GetName

func (p *NestedProperty) GetName() string

func (*NestedProperty) GetNestedProperties

func (p *NestedProperty) GetNestedProperties() []*models.NestedProperty

type Property

type Property struct {
	*models.Property
}

func (*Property) GetName

func (p *Property) GetName() string

func (*Property) GetNestedProperties

func (p *Property) GetNestedProperties() []*models.NestedProperty

type Service

type Service struct {
	pb.UnimplementedWeaviateServer
	// contains filtered or unexported fields
}

func NewService

func NewService(traverser *traverser.Traverser, authComposer composer.TokenFunc,
	allowAnonymousAccess bool, schemaManager *schemaManager.Manager,
	batchManager *objects.BatchManager, config *config.Config, logger logrus.FieldLogger,
) *Service

func (*Service) BatchDelete added in v1.23.3

func (s *Service) BatchDelete(ctx context.Context, req *pb.BatchDeleteRequest) (*pb.BatchDeleteReply, error)

func (*Service) BatchObjects

func (s *Service) BatchObjects(ctx context.Context, req *pb.BatchObjectsRequest) (*pb.BatchObjectsReply, error)

func (*Service) Search

func (s *Service) Search(ctx context.Context, req *pb.SearchRequest) (*pb.SearchReply, error)

func (*Service) Watch

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL