Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckLock ¶
CheckLock verifies the schema against a lock file. If the lock file does not exist, it creates one. If it exists, it verifies that nothing was removed (append-only).
func SortedPropertyNames ¶
SortedPropertyNames returns property names in sorted order for a given map.
Types ¶
type EdgeType ¶
type EdgeType struct {
Name string `json:"-"`
From string `json:"from"`
To string `json:"to"`
Properties map[string]Property `json:"-"`
}
EdgeType defines an edge type in the schema.
type Property ¶
type Property struct {
Name string `json:"-"`
Type PropType `json:"type"`
Required bool `json:"required,omitempty"`
}
Property defines a single property on a node or edge type.
type Schema ¶
Schema is the top-level schema definition.
func (*Schema) EdgeTypeID ¶
EdgeTypeID returns the uint16 ID for an edge type.
func (*Schema) SortedEdgeNames ¶
SortedEdgeNames returns edge type names in sorted order for deterministic output.
func (*Schema) SortedNodeNames ¶
SortedNodeNames returns node type names in sorted order for deterministic output.
Click to show internal directories.
Click to hide internal directories.