Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Edge ¶
An Edge between two vertices.
func (Edge) MarshalGraphson ¶
MarshalGraphson implements graphson.Marshaler interface.
func (*Edge) UnmarshalGraphson ¶
UnmarshalGraphson implements graphson.Unmarshaler interface.
type Element ¶
type Element struct { ID interface{} `json:"id"` Label string `json:"label"` }
Element defines a base struct for graph elements.
func NewElement ¶
NewElement create a new graph element.
type Property ¶
type Property struct { Key string `json:"key"` Value interface{} `json:"value"` }
Property denotes a key/value pair associated with an edge.
func NewProperty ¶
NewProperty create a new graph edge property.
func (Property) GraphsonType ¶
GraphsonType implements graphson.Typer interface.
type ValueMap ¶
type ValueMap []map[string]interface{}
ValueMap models a .valueMap() gremlin response.
type Vertex ¶
type Vertex struct {
Element
}
Vertex represents a graph vertex.
func (Vertex) GraphsonType ¶
GraphsonType implements graphson.Typer interface.
type VertexProperty ¶
type VertexProperty struct { ID interface{} `json:"id"` Key string `json:"label"` Value interface{} `json:"value"` }
VertexProperty denotes a key/value pair associated with a vertex.
func NewVertexProperty ¶
func NewVertexProperty(id interface{}, key string, value interface{}) VertexProperty
NewVertexProperty create a new graph vertex property.
func (VertexProperty) GraphsonType ¶
func (VertexProperty) GraphsonType() graphson.Type
GraphsonType implements graphson.Typer interface.
func (VertexProperty) String ¶
func (vp VertexProperty) String() string
String implements fmt.Stringer interface.