entity

package
v0.0.0-...-8dc4fb9 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateDbBody

type CreateDbBody struct {
	Name string `json:"name"`
}

type CreateDbResponse

type CreateDbResponse struct {
	Code int    `json:"code"`
	Msg  string `json:"msg"`
	Data struct {
		ID   int    `json:"id"`
		Name string `json:"name"`
	} `json:"data"`
}

type CreateSpaceResponse

type CreateSpaceResponse struct {
	Code int    `json:"code"`
	Msg  string `json:"msg"`
	Data struct {
		ID           int    `json:"id"`
		Name         string `json:"name"`
		ResourceName string `json:"resource_name"`
		Version      int    `json:"version"`
		DbID         int    `json:"db_id"`
		Enabled      bool   `json:"enabled"`
		Partitions   []struct {
			ID                int   `json:"id"`
			SpaceID           int   `json:"space_id"`
			DbID              int   `json:"db_id"`
			PartitionSlot     int   `json:"partition_slot"`
			Replicas          []int `json:"replicas"`
			ResourceExhausted bool  `json:"resourceExhausted"`
		} `json:"partitions"`
		PartitionNum    int             `json:"partition_num"`
		ReplicaNum      int             `json:"replica_num"`
		Fields          json.RawMessage `json:"fields"`
		Index           json.RawMessage `json:"index"`
		SpaceProperties json.RawMessage `json:"space_properties"`
	} `json:"data"`
}

type DescribeSpaceResponse

type DescribeSpaceResponse struct {
	Code int    `json:"code"`
	Msg  string `json:"msg"`
	Data struct {
		SpaceName    string `json:"space_name"`
		DbName       string `json:"db_name"`
		PartitionNum int    `json:"partition_num"`
		ReplicaNum   int    `json:"replica_num"`
		Schema       struct {
			Fields json.RawMessage `json:"fields"`
			Index  json.RawMessage `json:"index"`
		} `json:"schema"`
		DocNum     int `json:"doc_num"`
		Partitions []struct {
			Pid         int             `json:"pid"`
			ReplicaNum  int             `json:"replica_num"`
			Path        string          `json:"path"`
			Status      int             `json:"status"`
			Color       string          `json:"color"`
			IP          string          `json:"ip"`
			NodeID      int             `json:"node_id"`
			RaftStatus  json.RawMessage `json:"raft_status"`
			IndexStatus int             `json:"index_status"`
			IndexNum    int             `json:"index_num"`
			MaxDocid    int             `json:"max_docid"`
		} `json:"partitions"`
		Status string `json:"status"`
	} `json:"data"`
}

type DocInfo

type DocInfo struct {
	Code      int    `json:"code"`
	Msg       string `json:"msg"`
	Total     int    `json:"total"`
	Documents []struct {
		ID     string          `json:"_id"`
		Source json.RawMessage `json:"_source"`
	} `json:"documents"`
}

type Document

type Document struct {
	DbName    string            `json:"db_name"`
	SpaceName string            `json:"space_name"`
	Documents []json.RawMessage `json:"documents"`
}

type QueryByDocID

type QueryByDocID struct {
	DbName    string `json:"db_name"`
	SpaceName string `json:"space_name"`
	Query     struct {
		DocumentIds []string `json:"document_ids"`
		PartitionID string   `json:"partition_id"`
		Next        bool     `json:"next"`
	} `json:"query"`
	VectorValue bool `json:"vector_value"`
}

type SpaceSchema

type SpaceSchema struct {
	Name         string          `json:"name"`
	PartitionNum int             `json:"partition_num"`
	ReplicaNum   int             `json:"replica_num"`
	Index        json.RawMessage `json:"index"`
	Fields       json.RawMessage `json:"fields"`
}

Jump to

Keyboard shortcuts

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