queryschema

package
v1.27.7 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// v1/schema/**
	DefaultSchemaPrefix = "v1/schema"
)

Variables

View Source
var ErrTenantNotFound = errors.New("tenant not found")

Functions

This section is empty.

Types

type ErrorResponse

type ErrorResponse struct {
	Message string `json:"message"`
}

type Response

type Response struct {
	Error  []ErrorResponse `json:"error,omitempty"`
	Status string          `json:"activityStatus"`
	Name   string          `json:"name"`
}

type SchemaInfo

type SchemaInfo struct {
	// contains filtered or unexported fields
}

func NewSchemaInfo

func NewSchemaInfo(addr, schemaPrefix string) *SchemaInfo

func (*SchemaInfo) Collection

func (t *SchemaInfo) Collection(ctx context.Context, collection string) (*models.Class, error)

Collection returns details about single collection from the schema. https://weaviate.io/developers/weaviate/api/rest#tag/schema/GET/schema/{className}

func (*SchemaInfo) TenantStatus

func (t *SchemaInfo) TenantStatus(ctx context.Context, collection, tenant string) (string, error)

Jump to

Keyboard shortcuts

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