Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Graph ¶
type Graph interface { GetNode(typee string, id string) (Node, error) AddNode(typee string, id string, properties map[string]interface{}) (Node, error) DelNode(typee string, id string) error RangeNodes(where *model.NodeWhere) (string, []Node, error) NodeTypes() []string GetRelation(relation string, id string) (Relation, error) RangeRelations(where *model.RelationWhere) (string, []Relation, error) RelationTypes() []string Close() error FSM() raft.FSM }
type Node ¶
type Node interface { Entity AddRelation(direction Direction, relation string, properties map[string]interface{}, node Node) (Relation, error) DelRelation(relation string, id string) error GetRelation(relation, id string) (Relation, bool, error) Relations(where *model.RelationWhere) (string, []Relation, error) }
Click to show internal directories.
Click to hide internal directories.