schemaEntity

package
v0.0.0-...-9b78e5f Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2024 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Attribute

type Attribute struct {
	Name string `json:"name"`
	Type string `json:"type"`
}

Attribute is a JSON format for attributes, Type should onle be one of "string", "boolean", "int", "float"

type Document

type Document map[string]interface{}

Document with Empty struct to retrieve all data from the DB Document

type Edge

type Edge struct {
	Name       string      `json:"name"`
	Collection string      `json:"collection"`
	From       string      `json:"from"`
	To         string      `json:"to"`
	Attributes []Attribute `json:"attributes"`
}

Edge is a JSON format for edges

type EdgeStats

type EdgeStats struct {
	Type  string `json:"type"`
	Count int    `json:"count"`
}

type JSONReturnFormat

type JSONReturnFormat struct {
	Nodes []Node `json:"nodes"`
	Edges []Edge `json:"edges"`
}

JSONReturnFormat is the format in which the schema will be returned, so it can be easily converted to JSON

type NeoEdge

type NeoEdge struct {
	Name string
	ID   int64
	From int64
	To   int64
}

NeoEdge is an edge that holds the information from a relation returned by the schema query. It is yet to be parsed to a format that GraphPolaris can use

type Node

type Node struct {
	Name       string      `json:"name"`
	Attributes []Attribute `json:"attributes"`
}

Node is a JSON format for nodes

type NodeEdgeRetriever

type NodeEdgeRetriever func(context.Context, driver.Cursor, string)

NodeEdgeRetriever is a function that creates a node or edge set

type NodeStats

type NodeStats struct {
	Labels []interface{} `json:"labels"`
	Count  int           `json:"count"`
}

type SchemaStats

type SchemaStats struct {
	NodeStats []NodeStats `json:"nodeStats"`
	EdgeStats []EdgeStats `json:"edgeStats"`
}

MessageQueueMessage describes a message coming in through the message queue

Jump to

Keyboard shortcuts

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