Documentation
¶
Index ¶
- Constants
- func NewBlobValue(v string) *pb.Value
- func NewBoolValue(v bool) *pb.Value
- func NewDateValue(v string) *pb.Value
- func NewGeoValue(v *models.GeoCoordinates) *pb.Value
- func NewIntValue(v int64) *pb.Value
- func NewListValue(v *pb.ListValue) *pb.Value
- func NewNestedValue[P schema.PropertyInterface](v interface{}, dt schema.DataType, parent P, prop search.SelectProperty) (*pb.Value, error)
- func NewNilValue() *pb.Value
- func NewNumberValue(v float64) *pb.Value
- func NewObject[P schema.PropertyInterface](v map[string]interface{}, parent P, selectProp search.SelectProperty) (*pb.Properties, error)
- func NewObjectList[P schema.PropertyInterface](v []interface{}, parent P, selectProp search.SelectProperty) (*pb.ListValue, error)
- func NewObjectValue(v *pb.Properties) *pb.Value
- func NewPhoneNumberValue(v *models.PhoneNumber) *pb.Value
- func NewPrimitiveList[T bool | float64 | string](v []T, dt schema.DataType) (*pb.ListValue, error)
- func NewPrimitiveValue(v interface{}, dt schema.DataType) (*pb.Value, error)
- func NewStringValue(v string) *pb.Value
- func NewUuidValue(v string) *pb.Value
- type NestedProperty
- type Property
- type Service
- func (s *Service) BatchDelete(ctx context.Context, req *pb.BatchDeleteRequest) (*pb.BatchDeleteReply, error)
- func (s *Service) BatchObjects(ctx context.Context, req *pb.BatchObjectsRequest) (*pb.BatchObjectsReply, error)
- func (s *Service) Check(ctx context.Context, request *grpc_health_v1.HealthCheckRequest) (*grpc_health_v1.HealthCheckResponse, error)
- func (s *Service) Search(ctx context.Context, req *pb.SearchRequest) (*pb.SearchReply, error)
- func (s *Service) Watch(request *grpc_health_v1.HealthCheckRequest, ...) error
Constants ¶
const BEACON_START = "weaviate://localhost/"
Variables ¶
This section is empty.
Functions ¶
func NewBlobValue ¶ added in v1.23.1
NewBlobValue constructs a new blob Value.
func NewBoolValue ¶ added in v1.23.0
NewBoolValue constructs a new boolean Value.
func NewDateValue ¶ added in v1.23.0
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
NewIntValue constructs a new number Value.
func NewListValue ¶ added in v1.23.0
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
NewNilValue constructs a new nil Value.
func NewNumberValue ¶ added in v1.23.0
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
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 NewStringValue ¶ added in v1.23.0
NewStringValue constructs a new string Value.
func NewUuidValue ¶ added in v1.23.0
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 ¶
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, ) *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) Check ¶
func (s *Service) Check(ctx context.Context, request *grpc_health_v1.HealthCheckRequest) (*grpc_health_v1.HealthCheckResponse, error)
func (*Service) Search ¶
func (s *Service) Search(ctx context.Context, req *pb.SearchRequest) (*pb.SearchReply, error)
func (*Service) Watch ¶
func (s *Service) Watch(request *grpc_health_v1.HealthCheckRequest, server grpc_health_v1.Health_WatchServer) error